Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simulating a location on Real iOS Device

Is it possible to simulate a location on iOS Device, say I want to simulate London on the device while I am sitting in Oxford?

Thanks.

like image 280
itsaboutcode Avatar asked Jul 02 '13 21:07

itsaboutcode


People also ask

Can you simulate location on iPhone?

With your iPhone or iPad plugged in, select Toolbox at the top of the program, and then VirtualLocation from that screen. Select somewhere on the map, or use the search bar, to choose where you want to fake your location. Select Modify virtual location, and then select OK when you see the confirmation prompt.

How do you simulate a location?

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

Yes, It is possible to simulate the location on device in debug mode. All you need is to debug your application on device, and then enable the location from debug menu.

Check this link... https://developer.apple.com/library/ios/recipes/xcode_help-debugger/articles/simulating_locations.html

like image 199
Yasir Ali Avatar answered Sep 23 '22 20:09

Yasir Ali


You can create a GPX file with the desired location/coordinates and you can enable it from the debugger or from the Project scheme select run/options/"Allow location simulation". After you have this enabled and your device connected the location simulation will work on the device to till you reboot it. A good article that explain this can be found here: https://blackpixel.com/writing/2013/05/simulating-locations-with-xcode.html

like image 45
Lucian Boboc Avatar answered Sep 22 '22 20:09

Lucian Boboc