Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS simulator and gps

How do I simulate GPS movement on iOS simulator? I am developing an app that uses gps an I need to test it while the user location is changing.. How can I do that? thank you in advance..

like image 670
snksnk Avatar asked Sep 28 '12 14:09

snksnk


People also ask

Does location work on iOS simulator?

in iOS Simulator menu, go to Features -> Location -> Custom Location. There you can set the latitude and longitude and test the app accordingly. This works with mapkit and also with CLLocationManager.

Does location work on simulator?

Location simulation is available for iOS and tvOS devices and simulators.

How do you simulate location on iPhone?

Launch Apple Maps and navigate to the location you'd like to be in. Hit the bottom of the window to get location information, and you should find the Simulate Location feature. Tap to confirm and verify if it works for your other apps.

How do you simulate a location in Simulation?

Click the location on the map you want to simulate, and then press the lowercase L key. A dialog will appear with the message, “Simulated Location Set”. After a short time, the simulated location you set in the Editor will appear as a pink dot in the Android Emulator. Click anywhere on the map, and press Shift+L.


2 Answers

From the Features > Location menu of the iOS Simulator, check the Location menu:

Note: The screenshot below is outdated, however the path above has been updated to reflect the proper menu location for this option.

Debug menu of iOS Simulator

It provides you with several options pertaining to changing the location of the simulated device.

like image 144
esqew Avatar answered Oct 13 '22 02:10

esqew


For those that are getting here in 2020, things have changed a little bit, You'll find the options to modify location settings under Featuresenter image description here

like image 29
Muganwas Avatar answered Oct 13 '22 00:10

Muganwas