Я не могу получить координаты пользователя с помощью Watchkit. Я использую xCode 10.0.
import Foundation
import WatchKit
import CoreLocation
class lapperSetUp: WKInterfaceController, CLLocationManagerDelegate {
let manager = CLLocationManager()
override init(){
super.init()
manager.delegate = self
manager.desiredAccuracy = kCLLocationAccuracyBest
manager.requestAlwaysAuthorization()
manager.startUpdatingLocation()
}
@IBAction func makeStart() {
var location = manager.location
print(location?.coordinate.latitude)
}
}