CLLocationManager kCLErrorDomain Codes?

cllocationmanager, ibeacon, ios

Solution

Look at the docs for `CLError`. Value 16 is `kCLErrorRangingUnavailable`.

The docs say:

Ranging is disabled. This might happen if the device is in Airplane mode or if Bluetooth or location services are disabled.

Problem

Using iBeacon and CoreLocation I'm receiving the following error: Error Domain=kCLErrorDomain Code=16 "The operation couldn’t be completed. (kCLErrorDomain error 16.) Unless I'm missing it, there doesn't seem to be a clear reference on Apple for what each of the error code means. Can anyone interpret this error code? The error calls from: ``` - (void)locationManager:(CLLocationManager *)manager rangingBeaconsDidFailForRegion: (CLBeaconRegion *)region withError:(NSError *)error{ NSLog(@"%@", error); } - (void)locationManager:(CLLocationManager *)manager monitoringDidFailForRegion:(CLRegion *)region withError:(NSError *)error{ NSLog(@"%@", error); } ```

Original source