Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simulate fake location on real iOS device

I want to simulate fake location on my iPhone 5S device using specific longitude and latitude. Is there a way to do this in XCode. I tried using the simulate location feature by adding a GPX file in XCode but it's not working. Thank you in advance.

like image 818
AWSSET Avatar asked Sep 16 '14 13:09

AWSSET


People also ask

How do I spoof a 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?

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.

How do you mock locations in Simulation?

settings> system > developer optionsFind the option select mock location app Then select the app you downloaded from step 1.


1 Answers

It is possible.

You only have to: 1) plug your device to the computer. 2) run an app in the real device (it is the same which application). It is only to have the menu enabled. 3) in Xcode (not in the simulator) Go to menu: Debug -> Simulate Location and select one or add a GPX file.

It will simulate the location not only for the application executed but for all of them.

I suppose that the phone must be in developer mode but if you run apps from Xcode it must be anyway.

I've tested it from Xcode 6 in an iPhone 4 iOS 7.1.2

Hope it helps

like image 63
buttcmd Avatar answered Oct 15 '22 08:10

buttcmd