After upgrading to Xcode 14.1 on macOS 13.0.1 the command for changing my status bar on the simulator doesn’t work anymore. The terminal seems to get the booted device, because the command
xcrun simctl shutdown "booted"
does work.
If I try xcrun simctl status_bar "booted" override --time 9:41
nothing happens though. I tried multiple simulators, none of them showed the changes for the status bar.
Is this a known bug or am I missing something?
3
Answers
This should be a known bug that was introduced since Xcode 14.1 (Xcode 14.2 doesn’t work too). There’s also a discussion thread at Apple Developer Forums. Refer to "Can’t change time in Xcode Simulator".
The OP of that thread said "Simulator Status Magic" works, but I tried without any luck. Maybe you can try it first.
If it doesn’t work for you as well, I think the only way left is to download Xcode 14.0 from Software Downloads page.
Downloading Simulator 16.0 from Xcode 14.1/2 might also work, but I didn’t try because the process cost a long time on my side. And what’s more, the shortcoming is whenever you upgrade to a new Xcode version in the future, you need to re-download Simulator 16.0 again. Who knows when this bug will be fixed.
Personally, I will keep Xcode 14.0 for a while until Apple’s developer team fixes this bug. Btw, remember to rename the downloaded Xcode to "Xcode 14" before dragging it to your Application folder.
Use iOS 16.0 simulator instead of 16.1 or newer. This can be added in Xcode -> Settings -> Platform
This is a bug in Xcode. I wrote a bit more about what the actual problem is here but as a workaround you can boot your simulator like so and it should go back to working:
SIMCTL_CHILD_SIMULATOR_RUNTIME_VERSION=16.0 xcrun simctl boot