views:

1754

answers:

5

'NSInvalidUnarchiveOperationException', reason: '*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (MKMapView)'

i am getting this error.am i missed something.i don't know from where to add MApkit.framework first i tried with target->getInfo and then from the bottom + sign added framework but that did not wrked.then i search in spotlight and added another framework.by adding this it removed previous error but gives the above one.what is the exact location of mapkit framework. i want to test it in simulator.

+4  A: 

Frameworks (assuming 3.x) are in /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/Frameworks

Rafif Yalda
A: 

I am trying to make my app to work in both 2.x and 3.x versions so i copied Map Kit framework to my bundle instead of linking to frameworks. Then i got above error.

Please help me.

Thanks shiva

Shiva
A: 

but why in the help documentation it uses this location:

/System/Library/Frameworks/MapKit.framework

which does not actually contains the MapKit.framework folder?

Bat
A: 
any clues?
def method
    puts 'a'
end
#include <stdio.h>
bat
A: 

With Xcode 3.2, MapKit is pre-populated in the Add → Existing Frameworks… dialog and simply requires selecting MapKit from the list.

from http://cs491f09.wordpress.com/2009/10/30/assignment-6-adding-the-mapkit-framework/

daidai
That said, I am able to get this working in the Simulator but then when I try it on the Device it gives me the same 'NSInvalidUnarchiveOperationException' error as above.
daidai