views:

229

answers:

1

I may be doing something really stupid here as I've done it before and it worked and now...

Created a new iPad project, in the details view I added a MKMapView, added the MapKit.framework to the project, added the property / etc. to the header. Go to run the project and get a SIGABRT with

**Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named MKMapView'

I found http://mithin.in/2009/06/22/using-iphone-sdk-mapkit-framework-a-tutorial/ but, like I said, I've already added framework. What am I missing?

+2  A: 

I ran into this too, but I was able to get past it by following the instructions of step 2 in you're link (thanks, by the way):

  1. Add the MapKit framework to the project. (Control + Click Frameworks folder -> Add -> Existing Frameworks)

I just searched for MapKit.framework, added it to the project, and the error went away.

I haven't added any map code yet (although I do have a MapViewDelegate connected in IB), but it's working fine so far!

JoBu1324
Glad it helped! I did finally get it working by doing the following:- Clean project- Reset device- Reboot machineNot sure which was necessary, but it works now :)
tg2