iOS simulator and gps

2020-06-15 18:02发布

问题:

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..

回答1:

From the Debug menu of the iOS Simulator, check the Location menu:

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



回答2:

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