Skip to content

Instantly share code, notes, and snippets.

@TyrfingMjolnir
Last active August 2, 2020 21:49
Show Gist options
  • Save TyrfingMjolnir/0bc82b38d01fbe90935f531e2932079b to your computer and use it in GitHub Desktop.
Save TyrfingMjolnir/0bc82b38d01fbe90935f531e2932079b to your computer and use it in GitHub Desktop.
Apple XCode simctl statusbar examples / getting started

This is like ls for the options of statusbar in the simulator controller.

xcrun simctl status_bar

Some examples below

Static project name gh-test-

xcrun simctl io booted recordVideo "gh-test-$(date).mp4"

Dynamic project name

xcrun simctl io booted recordVideo "${PWD##*/}_$(date +%Y-%m-%d_%H-%M-%S).mp4"

Simple example on setting the parameters for the visuals in the status bar

xcrun simctl status_bar booted override --time 8:17 --wifiBars 1 --cellularBars 1 --batteryLevel 8

How to remove your customization.

xcrun simctl status_bar booted clear

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