如何在iOS真实设备上设置假GPS位置 [英] How to set fake GPS location on IOS real device
问题描述
目前我必须测试应用程序并在真实的IOS 7设备上设置不同的假GPS位置。在Android上,我使用我的假位置。不幸的是,我没有找到IOS 7的应用程序。
解决我的问题的任何想法?
为了测试目的,有两种方式:
1)当设备连接到xcode时,使用模拟器并让它播放2)对于真实世界的测试,没有连接到simu,一种可能性是你的应用程序有一个特殊的内置模式,你可以将它设置为播放模式。在这种模式下,应用程序必须使用1s计时器创建位置本身,并创建一个新的CLLocation对象。
3)第三种可能性在这里描述:
https://blackpixel.com/writing/2013/ 05 / simulating-locations-with-xcode.html
Currently I have to test app and set the different fake GPS locations on real IOS 7 devices. On Android I use 'My Fake Location'. Unfortunately, I didn't find the same app for IOS 7. Any ideas to solve my problem?
Of course ios7 prohibits creating fake locations on real device.
For testing purpose there are two approches:
1) while device is connected to xcode, use the simulator and let it play a gpx track.
2) for real world testing, not connected to simu, one possibility is that your app, has a special modus built in, where you set it to "playback" mode. In that mode the app has to create the locations itself, using a timer of 1s, and creating a new CLLocation object.
3) A third possibility is described here: https://blackpixel.com/writing/2013/05/simulating-locations-with-xcode.html
这篇关于如何在iOS真实设备上设置假GPS位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!