Skip to content

Instantly share code, notes, and snippets.

@alexkaessner
Last active April 8, 2024 18:36
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alexkaessner/c41a74c2a1ab7bcc405ea39d7884e4ce to your computer and use it in GitHub Desktop.
Save alexkaessner/c41a74c2a1ab7bcc405ea39d7884e4ce to your computer and use it in GitHub Desktop.
Customize iOS Simulator Status Bar (Xcode 11+)
$ xcrun simctl status_bar booted override --time "9:41" --batteryState charged --batteryLevel 100 --cellularMode active
@alexkaessner
Copy link
Author

alexkaessner commented Sep 17, 2019

Use Terminal to set the Status Bar of all booted Simulator devices to the most common variables.

Note

There used to be a bug with this command since iOS 16.1. As noted in the Apple Dev Forums, this bug is finally fixed with Xcode 15.3 (and xcrun 68).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment