ios - 我可以使用 Xcode 模拟器测试 Significant-Change 吗?

标签 ios core-location cllocationmanager

我想知道我是否可以在 Xcode Simulator 中测试 Significant-Change 位置服务(startMonitoringSignificantLocationChanges 方法),或者它只适用于实际设备。 请注意,我已经在 Simulator 中尝试过它,但它没有用,但我不确定这是否只是因为它在模拟器上不起作用,还是因为我做错了什么。

谢谢

最佳答案

参见 XCode / iOS simulator: Trigger significant location change manually .您可以模拟显着的位置变化,但如果您使用模拟器的“高速公路驾驶”位置 Debug模式,则可能需要大约 5 分钟才能获得更新。

关于ios - 我可以使用 Xcode 模拟器测试 Significant-Change 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8682683/

相关文章:

swift - locationManager 函数在代码末尾触发

ios - CLLocationManager() Location 在模拟器中为 nil

swift - CLLocationManager、核心数据和数组

ios - didUpdateLocations 未被调用

ios - 再次调出 "App Would Like to Use Your Current Location"对话

ios - CoreLocation“重大位置更改”与“区域监视”

iphone - Objective-C 返回一个数组 - 内存问题

ios - iOS 中的室内地图

java - 代号 1 个 GPS 提供商和当前位置

ios - 更改约束目标类