Reputation: 992
I have just upgraded my Xcode to 12 beta. I have tried to override the status bar on the simulator using this command:
xcrun simctl status_bar 52B135BF-F549-4684-A959-914499AB3296 override --time '9:41' --batteryState charged --batteryLevel 100;
This command works on the previous version. However, it doesn't work anymore. Does anyone know how to fix this?
Upvotes: 3
Views: 1151
Reputation: 2908
After years of this bug being around, it’s finally fixed with Xcode 15.3 (and xcrun 68)!
Btw, you don’t need to add the UUID to the simulator and can simply call booted
instead.
For example like this:
xcrun simctl status_bar booted override --time "9:41" --batteryState charged --batteryLevel 100 --cellularMode active
Upvotes: 0
Reputation: 1926
From Xcode 12b3 Release Notes: "simctl status bar overrides don’t work properly on simulated devices running iOS or iPadOS 13.6 or earlier. (63958080)"
Just got burned by this myself.
Upvotes: 3