Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The operation couldn’t be completed. (MKErrorDomain error 4)

I am using the MKReverseGeocoder but I keep getting reverseGeocoder:didFailWithError: "The operation couldn’t be completed. (MKErrorDomain error 4.)". I am passing the geocoder the coordinates of the MKUserLocation annotation. What does this error mean & how can I avoid it?

like image 309
Kyle Decot Avatar asked Oct 02 '10 00:10

Kyle Decot


1 Answers

My answer to a similar question:

I've met and solved this issue recently. In my case, when Apple Map cannot find any result for a query, it sometimes will just throw this this "MKErrorDomain = 4" error. So I ended up just treating this as "result not found".

It was painstaking to find this out, MapKit needs a better Error handling system.

like image 85
AsyncMoksha Avatar answered Sep 24 '22 06:09

AsyncMoksha