3

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?

Kelvin Tan
  • 982
  • 1
  • 12
  • 33
  • 1
    You can just say booted instead the big long identifier. Or use the sim name. – matt Jul 06 '20 at 12:35
  • I just ran `xcrun simctl status_bar booted override --time '9:41' --batteryState charged --batteryLevel 100` and it works fine. Voting to close as being unreproducible. – matt Jul 06 '20 at 13:37
  • It did not work on my mac. I ask to see if anybody has the same problem. – Kelvin Tan Jul 06 '20 at 13:55

1 Answers1

3

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.

Craig Pearlman
  • 1,926
  • 1
  • 13
  • 4
  • 2
    Documented as not working with Xcode 13 Beta 2 as well: >Status bar overrides are unavailable in simulated devices. (78155601) – Pascal Bourque Jul 10 '21 at 01:44