I get The operation couldn’t be completed. (kCLErrorDomain error 0.) when I run the code below. I tried to starting CLLocationManager with [self.locationManager startUpdatingLocation]; but that gives an error of startUpdatingLocation is unavailable in watchOS.
self.locationManager = [CLLocationManager new];
self.locationManager.delegate = self;
self.locationManager.desiredAccuracy = kCLLocationAccuracyBest;
[self.locationManager requestWhenInUseAuthorization];
[self.locationManager requestLocation];
- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations {
}
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error {
}