Alex Stelea
Alex Stelea

Reputation: 1219

"_OBJC_CLASS_$_MKAnnotationView", referenced from: ERROR

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

Upvotes: 15

Views: 9661

Answers (1)

Mathieu
Mathieu

Reputation: 3130

Add the framework MapKit to your project.

Upvotes: 52

Related Questions