CLLocationManager simulator to simulate car movement?

I have been looking for some time for something like a simulator CLLocationManagerthat will allow me to simulate the GPS ( CLLocation) positions that can be obtained via CLLocationManager) along a preliminary route (for example, a KML or GPX file as an input, or something else, but KML will be nice;).

Something like this is available on the Android emulator, and I was wondering if something like this would exist for the iPhone simulator. At least it would be great and would speed up testing on a simulator instead of driving for real ....: /

If nothing of the kind exists, what will be your approach to faking such behavior and implementing the simulator in such a way that the client is not influenced? (There is no code change in the delegate CLLocationManager).

Thanks for your links, tips, approaches ...

+5
source share
2 answers

I think the best approach is to take control of the CLLocationManager by implementing its own category for it and simulate the expected behavior.

Here I describe this approach: Testing CoreLocation on iPhone Simulator

+1
source

You cannot enter a simulator, but you can subclass CoreLocation:

http://code.google.com/p/dlocation/

CoreLocationDelegate , .

CoreLocation iPhone Simulator

+1

All Articles