Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ simslim on <udid> --keep com.apple.apsd
| `messaging` | Messaging & FaceTime | iMessage, FaceTime, call, and identity services. | 60 |
| `connectivity` | Sharing & Device Connectivity | AirDrop, Continuity, CarPlay, Watch, and Find My services. | 65 |
| `telemetry` | Ads, Diagnostics & Telemetry | DeviceCheck, ad privacy, analytics, diagnostics, and feedback services. | 105 |
| `other` | Other Background Services | Wallet, business services, assets, and miscellaneous background daemons. | 195 |
| `mdm` | Device Management | Declarative device management and managed asset services. | 10 |
| `other` | Other Background Services | Wallet, App Clips, business services, assets, and miscellaneous background daemons. | 225 |

Memory figures are iOS 26.5 clean-boot medians and are not additive; see the
[measurement method](docs/category-memory.md). Run `simslim profiles <id>` to
Expand All @@ -157,7 +158,7 @@ see the daemons in a category.

### Slow CI runners

`simslim on` boots the simulator, disables ~170 daemons one `launchctl` call at a
`simslim on` boots the simulator, disables ~175 daemons one `launchctl` call at a
time, then reboots — all under a single 10-minute deadline. Shared CI runners (like
GitHub-hosted macOS runners) are slower and less predictable, and can blow that
deadline mid-reconfigure with `context deadline exceeded` errors. Raise it with the
Expand Down Expand Up @@ -474,6 +475,8 @@ Turning services off is fine for most development, UI automation, and CI, but so
- Recents in the Files app and the document picker shows "Content Unavailable" without `searchd` (`search`).
- Push notifications need `apsd`, StoreKit testing needs `storekitd` (`store`).
- Universal links need `swcd` (`web`).
- Declarative device management, and MDM or configuration-profile workflows that use it, need `mdm`.
- App Clips need `clipserviced`, and accessibility asset downloads such as VoiceOver voices need `axassetsd` (`other`).
- The Contacts, Photos, and Calendar pickers can act up without their categories.

`simslim profiles` lists every category, so you can keep a category with `--except` or individual daemons with `--keep`.
Expand Down
10 changes: 9 additions & 1 deletion docs/category-memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ category run's median minus that baseline, rounded to a useful GUI value.
| Messaging & FaceTime | 60.2 MiB | 60 MB |
| Sharing & Device Connectivity | 64.4 MiB | 65 MB |
| Ads, Diagnostics & Telemetry | 106.0 MiB | 105 MB |
| Other Background Services | 194.0 MiB | 195 MB |
| Device Management | 12.0 MiB | 10 MB |
| Other Background Services | 222.9 MiB | 225 MB |

These deltas are not additive. Services share caches and dependencies, and
their footprint changes with simulator runtime, boot age, installed apps, and
Expand All @@ -44,3 +45,10 @@ remaining 11 daemons after the same 20-second settle. Their median deltas were
64.4, 46.4, and 73.4 MiB; the median pair gives the 65 MB GUI estimate. Seven of
those daemons stayed resident at idle and directly totaled about 76.2 MiB. The
whole-simulator delta is used above for consistency with the other categories.

Device Management was added, and Other Background Services gained
`accessibility.axassetsd` and `ClipServices.clipserviced`, later. Both were
measured on an iPhone 17 Pro / iOS 26.5 in three clean-boot rounds, taking the
median of three samples after a 20-second settle, against a fully slim baseline
of 847.3 MiB from the same rounds. Before the change, the same rounds measured a
fully slim simulator at 904.3 MiB.
2 changes: 2 additions & 0 deletions features.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ var Features = []Feature{
{ID: "news", Name: "News", Labels: []string{"com.apple.newsd"}},
{ID: "game-center", Name: "Game Center", Labels: []string{"com.apple.gamed"}},
{ID: "find-my", Name: "Find My", Labels: []string{"com.apple.findmy.findmylocated"}},
{ID: "mdm", Name: "Declarative device management", Labels: []string{"com.apple.remotemanagementd", "com.apple.RemoteManagementAgent"}},
{ID: "app-clips", Name: "App Clips", Labels: []string{"com.apple.ClipServices.clipserviced"}},
{ID: "screen-time", Name: "Screen Time", Labels: []string{"com.apple.ScreenTimeAgent"}},
}

Expand Down
14 changes: 14 additions & 0 deletions features_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,20 @@ func TestFilesRecentsDiagnoseDisabledSearchd(t *testing.T) {
}
}

func TestSlimProfileReportsMDMAndAppClipsUntilExcepted(t *testing.T) {
features, err := ResolveFeatures([]string{"mdm", "app-clips"})
if err != nil {
t.Fatalf("ResolveFeatures(mdm, app-clips) error = %v", err)
}
if report := DiagnoseFeatures(features, (Profile{}).Desired()); report.OK {
t.Errorf("a full slim profile must break MDM and App Clips: %+v", report)
}
kept := Profile{ExceptCategories: map[string]bool{"mdm": true, "other": true}}
if report := DiagnoseFeatures(features, kept.Desired()); !report.OK {
t.Errorf("--except mdm,other must keep MDM and App Clips: %+v", report)
}
}

func TestDiagnoseFeatures(t *testing.T) {
features, err := ResolveFeatures([]string{"push", "storekit", "universal-links"})
if err != nil {
Expand Down
20 changes: 17 additions & 3 deletions profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,12 +341,24 @@ var Categories = []Category{
"com.apple.devicecheckd",
},
},
{
ID: "mdm",
Name: "Device Management",
Description: "Declarative device management and managed asset services.",
Downside: "Declarative device management, and MDM or configuration-profile workflows that use it, will not work.",
ApproxMemoryMB: 10,
Labels: []string{
"com.apple.remotemanagementd",
"com.apple.RemoteManagementAgent",
"com.apple.managedassetsd",
},
},
{
ID: "other",
Name: "Other Background Services",
Description: "Wallet, business services, assets, and miscellaneous background daemons.",
Downside: "Wallet, merchant, business, asset, and miscellaneous background services are unavailable.",
ApproxMemoryMB: 195,
Description: "Wallet, App Clips, business services, assets, and miscellaneous background daemons.",
Downside: "Wallet, App Clips, accessibility asset downloads, merchant, business, and miscellaneous background services are unavailable.",
ApproxMemoryMB: 225,
Labels: []string{
"com.apple.financed",
"com.apple.passd",
Expand All @@ -362,6 +374,8 @@ var Categories = []Category{
"com.apple.countryd",
"com.apple.mobileassetd",
"com.apple.managedconfiguration.passcodenagd",
"com.apple.accessibility.axassetsd",
"com.apple.ClipServices.clipserviced",
},
},
}
Expand Down
7 changes: 7 additions & 0 deletions service_descriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ var serviceDescriptionByLabel = map[string]string{
"com.apple.purplebuddy.budd": "Maintains Setup Assistant completion state.",
"com.apple.devicecheckd": "Provides DeviceCheck and app-attestation services.",

// Device Management
"com.apple.remotemanagementd": "Applies declarative device management configurations.",
"com.apple.RemoteManagementAgent": "Applies per-user declarative management configurations.",
"com.apple.managedassetsd": "Downloads assets referenced by management declarations.",

// Other Background Services
"com.apple.financed": "Provides Wallet transaction and finance services.",
"com.apple.passd": "Manages Wallet passes and Apple Pay state.",
Expand All @@ -202,6 +207,8 @@ var serviceDescriptionByLabel = map[string]string{
"com.apple.countryd": "Determines regional availability for system features.",
"com.apple.mobileassetd": "Downloads and manages system asset packages. Kept enabled on visionOS.",
"com.apple.managedconfiguration.passcodenagd": "Enforces managed passcode requirements.",
"com.apple.accessibility.axassetsd": "Downloads accessibility assets such as speech voices.",
"com.apple.ClipServices.clipserviced": "Downloads, launches, and manages App Clips.",
}

func init() {
Expand Down