I need to do some testing that involves moving the "phone" backwards and forwards through several days. I'd like to do this on the simulator. Is there any available hack that allows the date as seen on the simulator to be changed, without having to change the Mac date?
Sometimes the iOS simulator doesn't respond to the open command. If it seems stuck on this prompt, you can open the iOS simulator manually ( open -a Simulator ) and then in the macOS toolbar, choose Hardware → Device, and select an iOS version and device that you'd like to open.
in iOS Simulator menu, go to Debug -> Location -> Custom Location. There you can set the latitude and longitude and test the app accordingly.
Looks like it's pretty tough... How about using xcodebuild
to automate building and running the app from a script and using systemsetup -setdate <mm:dd.yy>
to change date in between different runs? Then you wouldn't need to change anything in code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With