Problem:
*** Terminating app due to uncaught exception ‘NSInvalidUnarchiveOperationException’, reason: ‘*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (MKMapView)’
Solution:
add the “MapKit.framework” library.
Problem:
*** Terminating app due to uncaught exception ‘NSInvalidUnarchiveOperationException’, reason: ‘*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (MKMapView)’
Solution:
add the “MapKit.framework” library.
Where exactly is the facebook like button ?
Thank you for your reminding, facebook like button has been added now 😉
I did add the MapKit framework but the problem resists.
Did restart xcode, touched all related source files to enforce their compilation but the problem persists.
Any tips?
How did you add it? Adding it in Build Phases / Link Binary With Libraries (Xcode 4.1) worked for me to solve this error.
Yes, that’s the way to add framework to a project in Xcode 4
In Xcode 3: right click on the “Frameworks” folder -> “Add” -> “Existing Frameworks…”.