"_OBJC_CLASS_$_MKAnnotationView", referenced from: ERROR

Alex Stelea picture Alex Stelea · Nov 18, 2010 · Viewed 9.4k times · Source

.framework/MapKit, file was built for i386 which is not the architecture being linked (armv6) Undefined symbols: "_OBJC_CLASS_$_MKAnnotationView", referenced from: objc-class-ref-to-MKAnnotationView in MapViewController.o ld: symbol(s) not found collect2: ld returned 1 exit status

I am getting this error when building on my device even though I added the mapkit and corelocation frameworks. Does anyone know how i can solve this problem?

Answer

MathieuF picture MathieuF · Nov 18, 2010

Add the framework MapKit to your project.