xcode iOS模拟器和gps

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12641817/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 01:41:10  来源:igfitidea点击:

iOS simulator and gps

iosxcodegpssimulator

提问by snksnk

How do I simulate GPS movement on iOS simulator? I am developing an app that uses gps an I need to test it while the user location is changing.. How can I do that? thank you in advance..

如何在 iOS 模拟器上模拟 GPS 运动?我正在开发一个使用 gps 的应用程序,我需要在用户位置发生变化时对其进行测试。我该怎么做?先感谢您..

回答by esqew

From the Debugmenu of the iOS Simulator, check the Locationmenu:

DebugiOS 模拟器的菜单中,检查Location菜单:

Debug menu of iOS Simulator

iOS模拟器调试菜单

It provides you with several options pertaining to changing the location of the simulated device.

它为您提供了几个与更改模拟设备位置有关的选项。

回答by Muganwas

For those that are getting here in 2020, things have changed a little bit, You'll find the options to modify location settings under Featuresenter image description here

对于那些在 2020 年到达这里的人,情况发生了一些变化,您会在“功能”下找到修改位置设置的选项在此处输入图片说明