12

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

4

2 回答 2

22

From the Features > Location menu of the iOS Simulator, check the Location menu:

Note: The screenshot below is outdated, however the path above has been updated to reflect the proper menu location for this option.

Debug menu of iOS Simulator

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

于 2012-09-28T14:47:32.947 回答
7

对于那些在 2020 年来到这里的人,情况发生了一些变化,您可以在“功能”下找到修改位置设置的选项在此处输入图像描述

于 2020-05-18T18:09:16.480 回答