如何模擬watchOS模擬器的位置?使用帶有請求WatchOS模擬器中的位置檢測失敗
- (void) requestLocation {
locationManager = [CLLocationManager new];
locationManager.delegate = self;
[locationManager requestWhenInUseAuthorization];
[locationManager requestLocation];
}
我總是捕獲錯誤:
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error {
// Error here if no location can be found
}
的錯誤是 NSError * domain: @"kCLErrorDomain" - code: 0 0x7a867970
http://stackoverflow.com/questions/1409141/location-manager-error-kclerrordomain-error-0 –
對不起,這是行不通的。此外,沒有關於watchOS模擬器的信息。 – Vyacheslav