I am trying to fix a bug in my iOS app that is dependent upon date and time. Is there any way to set the actual time on the iOS Simulator to a specific date and time? I know that you can set one for the status bar, but that doesn't affect the actual date and time that is reported by the system to apps.
Is there any way to set the actual time on the iOS Simulator to a specific date and time?
No.
Well, the simulator picks up its time from your Mac, so you could change the time on your Mac, but that’s rather heavy handed.
Is there a reason you need to do this in the simulator? If you did this test on a real device, you could change its time in Settings.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"