We have been observing a major spike in Core Location delegation method didFailWithError for iOS v17.5 and v17.5.1. Sharing the implementation of the code at our end -
func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) {
if let clError = error as? CLError {
switch clError.code {
case .locationUnknown:
print("Location unknown")
case .denied:
print("Access denied")
case .network:
print("Network error")
default:
print("Other error: (clError.code)")
}
} else {
print("Other error: (error.localizedDescription)")
}
}
We are observing error responses with error code 0: locationUnknown in iOS 17.5 and above. Is anyone else facing the same issue? Not able to debug this at our end.