r/iOSProgramming • u/anurodhp • Sep 22 '26
Solved! PSA: run xcrun simctl delete unavailable after you upgrade Xcode
I've been building ios apps since iOS2. I had accumulated over 800 devices in my list going back over a decade. If it becomes a problem that causes slowdown when trying to open an interfacebuilder file in Xcode, it is because it has to iterate all of those devices. After that run sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService to refresh your simulators.
55
Upvotes
25
u/iv_mexx Sep 22 '26
Good PSA in general, but.... have you never upgraded your dev machine in the last decade?
5
u/Gernot Sep 23 '26
I doubt it. You run out of disk space way before reaching 800 simulators.
1
u/matznerd Sep 24 '26 edited Sep 24 '26
Do not update to Mac OS 27, which forces Xcode 27, if you use the computer use simulator with codex, it does not currently work. Also Xcode 27 straight up does not have the actual simulator. It’s now an entirely separate app called Device Hub.
I was able to get it into the Claude Code Desktop iOS Simulator window by using a symlink from old name to new, then I think I had to pop the window out first.
If using agentic coding, I would not update to Mac/Xcode 27 until you know more. Apparently there is no downgrade except with the wipe or Time Machine. Be careful and remember that agents won’t have any knowledge of the new version. I though maybe because Apple put out some agent skills you can download via a CLI command and a new json project file that it would be an improvement, it’s the right direction but so far no gains at all, and only pain.
1
u/perfmode80 Sep 26 '26
How did these get migrated to your newer Mac hardware? Or are you using a decade old Mac?
2
u/nailernforce Sep 23 '26
I do this regularly, but your post reminded me to do it again. That said, when making suggestions like this, add the command in the post text itself so we can copy paste it directly. Reddit won't let me copy it from the title without using a right click -> copy command.
1
u/dengjiuhong Sep 25 '26
One extra reason I keep the simulator lane separate from device sign-off:
simctl locationis excellent for deterministic UI/logic checks, but it isn't a substitute for an owned iPhone. On-device I verify the actual authorization state (When In Use vs Always and Precise Location), background/geofence delivery, and the callbacks/coordinates the app receives—not just the pin shown in the simulator. A useful split is simulator for repeatable happy/error paths, then a small physical-device matrix for permission transitions, suspension/termination, and region-entry/exit timing. That catches the “the test point moved but the app never got the event” failures.