• Skip to main content
  • Skip to primary sidebar

Ravi Shankar

Tweaking Apps

  • Swift
  • Tech Tips
You are here: Home / Develop / ‘NSInvalidUnarchiveOperationException’, reason: ‘Could not instantiate class named MKMapView’

‘NSInvalidUnarchiveOperationException’, reason: ‘Could not instantiate class named MKMapView’

February 1, 2013 By Ravi Shankar 2 Comments

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

Filed Under: Develop, Programming Tagged With: MapKit.framework, MKMapView, Objective C

Reader Interactions

Comments

  1. yinming says

    March 28, 2015 at 1:52 pm

    very usble;

    Reply
  2. Hansa says

    January 18, 2016 at 11:07 am

    it worked, tanq

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

TwitterLinkedin

Recent Posts

  • How to block keywords in Jio broadband
  • How to disable opening an app automatically at login in Mac
  • How to set preferred Wifi network on Mac
  • Attribute Unavailable: Estimated section warning before iOS 11.0
  • How to recover Firefox password from Time Machine backup

Pages

  • About
  • Privacy Policy
  • Terms and Conditions

Copyright 2022 © rshankar.com

Terms and Conditions - Privacy Policy