views:

90

answers:

3

I am developing an GPS based app. So I was wondering how could I simulate location on iphone simulator? I downloaded an sample app locateMe. This app does not work on simulator. Does simulator not support location api?

Any help would be appreciated.

+1  A: 

According to the documentation, when using the simulator:

"The relocation reported by the CoreLocation framework in the simulator is fixed at the following coordinates (accuracy 100 meters), which correspond to 1 Infinite Loop, Cupertino, CA 95014.

Latitude: 37.3317 North Longitude: 122.0307 West"

So, in practical terms, you should be able to build the app but you'll be unlikely to do anything useful with it.

Stephen Darlington
+1  A: 

No the simulator does not support it. So for GPS you have to install the application in the device to check it.

Simulator is gonna give you longitude and latitude as the address of Cupertino Where the headquaters of apple is.

So you have to use device only.

Happy Coding

Suriya
A: 

You might wanna check out my FTLocationSimulator at http://github.com/futuretap/FTLocationSimulator

It reads a KML file generated by Google Earth to provide faked location updates. It also updates the blue userLocation dot in a MKMapView with the simulated location updates.

Ortwin Gentz