twostraws / ControlRoom

A macOS app to control the Xcode Simulator.
MIT License
5.71k stars 306 forks source link

Workaround: Only set status bar time #188

Closed dkcas11 closed 2 weeks ago

dkcas11 commented 3 weeks ago

Since Xcode 15.3 simctl has failed to parse the ISO8601 string that is sent when changing the status bar time and spits out the error below:

An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Simulator device failed to complete the requested operation.
Invalid argument
Underlying error (domain=NSPOSIXErrorDomain, code=22):
    Invalid, non-ISO date/time string
    Invalid argument

However it only fails to parse the string when it contains a day, month and year and not when it's only hours and minutes. To continue to be able to use the functionality of setting just the time (seeing as its often the most used between a date and a time of day) I have disabled that for now so that we may re-introduce the ISO8601DateFormatter some time in the future.

twostraws commented 2 weeks ago

Thank you!