How do I set the date with Apples's `xcrun simctl status_bar`

Viewed 1644

With Apple's new command line tool xcrun simctl status_bar you can now set up the status bar in the simulator as you like without any need for 3rd party programs, however, I can't get it to change the date for bigger devices like the iPad Pro (12.9-inch).

In the help menu it states that if you enter a valid ISO date then it adapts that on devices where this is relevant: xcrun simctl status_bar --help

So I enter a valid ISO date 2016-09-18T17:34:02.666Z, but the status bar will afterwards look like this: date not correctly changed

2 Answers

I'm afraid the milliseconds and the Z timezone do not work, you should use this format:

xcrun simctl status_bar booted override --time "2007-01-09T09:41:00+01:00"

The documentation isn't very precise for this particular feature.

Try xcrun simctl status_bar <device> override --time "10:22" and it'll work.

Related