CLLocationManager error domain=kclerrordomain code=0 (null)

My app successfully finds the user location and shows it on a map. But on my WiFi-only iPad (10.3.2 now, but was happening on 10.2.1 as well) I'm getting the above error after about 10 seconds, and no location is found. This does not happen on my iPhone (10.3.1). I've tried many things, including making sure Info.plist includes "Location When In Use Usage Description" string. This happens running my app both via build and run in XCode and just running my app on it's own on the iPad.


My CLLocationManager code is pretty basic:


- (void)setupLocation {

self.mapLocationManager = [[CLLocationManager alloc] init];

self.mapLocationManager.delegate = self;

[self.mapLocationManager setDistanceFilter:100.0];

[self.mapLocationManager setDesiredAccuracy:kCLLocationAccuracyHundredMeters];

[self.mapLocationManager startUpdatingLocation];

dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, 60.0 * NSEC_PER_SEC);

dispatch_after(popTime, dispatch_get_main_queue(), ^(void){

[self.mapLocationManager stopUpdatingLocation];

});

self.mapView.showsUserLocation = YES;

}


- (void)locationManager:(CLLocationManager *)mapManager didUpdateLocations:(NSArray *)locations

{

self.mapView.delegate = self;

self.location = [locations lastObject];

[self.mapLocationManager stopUpdatingLocation];

}


-(void)locationManager:(CLLocationManager *)mapManager didFailWithError:(NSError *)error{

NSLog(@"Error: %@",error.description);

}

CLLocationManager error domain=kclerrordomain code=0 (null)
 
 
Q