Simulate fake location on real iOS device

て烟熏妆下的殇ゞ 提交于 2020-05-24 21:58:09

问题


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.


回答1:


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




回答2:


Here is complete solution of GPX file use in Xcode, it is describe step by step guidelines, how create perfect GPX file and how to use that file. Click here.



来源:https://stackoverflow.com/questions/25869753/simulate-fake-location-on-real-ios-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!