Repository navigation
xcode: list and delete simulator runtimes via simctl - #147
Conversation
|
Good idea and the plumbing is sound routing deletion through 1. 2. Auto-selecting multi-GB downloads does not match how this app behaves. 3. 4. Failed deletes give the wrong advice. Also drop the Worth noting for rebasing: 2.9.5 removes the Universal Binaries and Language Files categories, which touches |
Surface downloaded runtimes in Xcode Junk, delete through `simctl runtime delete`, and auto-select outdated ones on Smart Scan. Gracefully skip when xcrun is missing; covered by unit tests. Co-authored-by: Cursor <[email protected]>
eec0bac to
f223285
Compare
|
Hi @momenbasel |
…trings unions with pt-BR dashboard l10n) Co-authored-by: Cursor <[email protected]>
…ed selection policy Co-authored-by: Cursor <[email protected]>
momenbasel
left a comment
There was a problem hiding this comment.
Verified the updated branch as part of an automated maintainer pass — all four points from the previous review are properly addressed:
- The unsupported
--outdatedmachinery is gone entirely; no auto-select probing remains. makeCleanableItemsnow hard-codesisSelected: falsewithtestMakeCleanableItemsNeverAutoSelectsRuntimeDownloadslocking the policy in. Matches how every other network-recoverable item ships.isXcrunAvailable()now gates onxcode-select -pexit status (injectable for tests) — no more CLT installer dialog risk on Xcode-less Macs.- Failed simctl deletes now surface real, actionable errors ("Simulator services unavailable — open Xcode once…"), and
isActionItemkeeps virtual items out of the surviving-items FDA loop. Bonus: this also stops a failed Docker prune from producing the same bogus "Grant Access" advice.
Also verified independently on this end:
- Parsed a live
simctl runtime list -jfrom Xcode 26.6 — every field assumption inparseRuntimeListJSON(UUID-keyed dict,sizeBytes,deletable, ISO8601lastUsedAt) matches real output, which surfaced an 8.8 GB iOS 18.6 runtime here. Deletion routes exclusively throughsimctl runtime delete <uuid>— no filesystem paths are constructed or unlinked, so data-loss surface is limited to a re-downloadable image, and only ever by explicit user selection. - Full suite green locally on the branch after updating it: 19/19 tests pass (9 new runtime tests + localization parity across all 10 catalogs).
Maintainer changes pushed to your branch (thanks for enabling edits):
- Merged current
mainin and union-resolvedLocalizable.stringsconflicts with #145 (its Smart Care block + your "Simulator runtime" key now coexist; parity re-verified at 396 keys × 10 catalogs). - Fixed the six README files, which still advertised "outdated runtimes are auto-selected on Smart Scan" — stale after fix (2), since nothing is auto-selected anymore.
Merging via squash. Solid feature — multi-GB runtimes were the biggest blind spot in Xcode Junk. Thanks @omartio!
— automated maintainer pass on behalf of @momenbasel
… conflict resolution (#150) Co-authored-by: momenbasel <[email protected]> Co-authored-by: Cursor <[email protected]>
…ump 2.9.7 Ships the simctl runtime listing/deletion feature (#147), the pt-BR Smart Care dashboard translations (#145), the full French localization (#129), and the Xcode Junk description key restoration (#150), all already merged to main. Regenerated project picks up the new source and strings files. Co-authored-by: Cursor <[email protected]>
What does this PR do?
Surface downloaded runtimes in Xcode Junk, delete through
simctl runtime delete, and auto-select outdated ones on Smart Scan. Gracefully skip when xcrun is missing; covered by unit tests.Type of change
Testing
Screenshots