模拟Real iOS设备上的位置

时间:2021-03-20 20:53:25

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?

是否有可能在iOS设备上模拟一个位置,比如说我想坐在牛津时在设备上模拟伦敦?

Thanks.

谢谢。

3 个解决方案

#1


19  

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

查看此链接... https://developer.apple.com/library/ios/recipes/xcode_help-debugger/articles/simulating_locations.html

#2


2  

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

您可以使用所需的位置/坐标创建GPX文件,您可以从调试器或项目方案中选择运行/选项/“允许位置模拟”来启用它。启用此功能并且设备已连接后,位置模拟将在设备上运行,直到您重新启动它。可以在此处找到解释此问题的好文章:https://blackpixel.com/writing/2013/05/simulating-locations-with-xcode.html

#3


0  

Maybe this project can help: https://github.com/futuretap/FTLocationSimulator It simulate location sending fake data to the coreLocation.

也许这个项目可以提供帮助:https://github.com/futuretap/FTLocationSimulator它模拟将假数据发送到coreLocation的位置。

#1


19  

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

查看此链接... https://developer.apple.com/library/ios/recipes/xcode_help-debugger/articles/simulating_locations.html

#2


2  

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

您可以使用所需的位置/坐标创建GPX文件,您可以从调试器或项目方案中选择运行/选项/“允许位置模拟”来启用它。启用此功能并且设备已连接后,位置模拟将在设备上运行,直到您重新启动它。可以在此处找到解释此问题的好文章:https://blackpixel.com/writing/2013/05/simulating-locations-with-xcode.html

#3


0  

Maybe this project can help: https://github.com/futuretap/FTLocationSimulator It simulate location sending fake data to the coreLocation.

也许这个项目可以提供帮助:https://github.com/futuretap/FTLocationSimulator它模拟将假数据发送到coreLocation的位置。