less than 1 minute read

Problem :- Xcode project with MapView control displays the error “‘NSInvalidUnarchiveOperationException’, reason: ‘Could not instantiate class named MKMapView’”

Solution :- The ‘Could not instantiate class named MKMapView’ error is displayed when the Xcode project with MapView control on xib does not include the MapKit library as part of the Link Libraries.

Select the Xcode project and navigate to Build Phases.

201302010703.jpg

Click the + sign under Link Binary with Libraries and select MapKit,framework from framework and libraries to add selection window.

201302010704.jpg

201302010705.jpg

Now running the project should not display the NSInvalidUnarchiveOperationException.

201302010709.jpg

Need iOS Help?

I help developers and founders with:

  • New apps — idea to App Store
  • Bug fixes, debugging & rescue
  • App Store rejections
  • Code review & mentoring
See how we can work together →

10+ years iOS • 10+ published apps • 11,000+ students trained

Updated: