Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcrun simctl status_bar not working on Xcode 14.1

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?

Update

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
like image 215
kaevinio Avatar asked Sep 08 '25 10:09

kaevinio


1 Answers

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

like image 158
saagarjha Avatar answered Sep 11 '25 10:09

saagarjha