Ios – “_OBJC_CLASS_$_MKAnnotationView”, referenced from: ERROR

iosiphonemapkitmkannotationview

.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?

Best Answer

Add the framework MapKit to your project.

Related Topic