Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GPS Simulation in iOS

Tags:

ios

I am developing an app that depends on GPS data and works only in New York City. It will display "out of range" if the user is 30 miles away from Manhattan. The problem is that I am 8 hours away from New York City and can't really test the App functionality.

In Android, you can have DDMS send your device or AVD a mock location by simply pushing the lat and long coordinates. The App will then react to the location changes. I can't seem to find a way to do that in iOS.

Does anyone know how to simulate location on iOS?

Thanks

like image 292
Semere Taézaz Sium Avatar asked Oct 13 '11 19:10

Semere Taézaz Sium


1 Answers

In Xcode 4.2 with the new iOS 5 SDK it is possible to simulate locations in the simulator. Launch your app in the simulator, click the Debug menu option go to Location and then click Custom Location…. The simulator should then allow you to enter longitude and latitude.

like image 57
rastersize Avatar answered Oct 02 '22 10:10

rastersize