在我的应用程序中,我需要在用户当前位置发生重大更改时收到通知,因此我使用核心位置的startMonitoringSignificantLocationChanges()并处理用户的位置

locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation])  delegate.

我在Debug> Location中使用Freedrive,以便用户的当前位置不断变化 . 当我第一次将我的类设置为委托时,我在locationManager:didUpdateLocations委托方法中收到委托调用 .

第一次调用后,这个方法永远不会调用,我不明白为什么!我在Info.plist中设置了正确的密钥以获取始终位置权限,并始终授予应用程序权限 .