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?
The issue has been fixed in Xcode 15.3! We can now use the following command to perfectly adjust the status bar:
xcrun simctl status_bar "booted" override --time 9:41 --dataNetwork wifi --wifiMode active --wifiBars 3 --cellularMode active --cellularBars 4 --batteryState charged --batteryLevel 100
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With