Skip to content
Automate overriding the status bars for all running iOS simulators
Swift
Branch: master
Clone or download
jessesquires Use -j to get list of devices as JSON
Parse output of `xcrun simctl list devices -j` instead.
This outputs JSON so we can avoid parsing user-facing strings with regex.
Much nicer.

https://twitter.com/marcelofabri_/status/1178840949134200832
Latest commit 2b4debc Oct 1, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Sep 30, 2019
LICENSE Initial commit Sep 30, 2019
README.md Update README.md Oct 1, 2019
nine41.swift Use -j to get list of devices as JSON Oct 1, 2019

README.md

Nine41

Automate overriding the status bars for all running iOS simulators

About

Blog posts:

Xcode 11 shipped with simctl status_bar, a tool to override the status bar values in the simulator so you can take perfect screenshots.

However, it has some issues:

  • The overrides do not persist across launches of the simulator
  • The numerous override options are difficult to remember
  • There are no sensible defaults

This script fixes that. It overrides the status bars for all currently running simulators using "Apple's defaults" — full cellular bars, full wifi bars, full battery, and 9:41 for the time.

License

Released under an MIT License. See LICENSE for details.

Copyright © 2019 Jesse Squires.

You can’t perform that action at this time.