15

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

MathieuF
  • 3,130
  • 5
  • 31
  • 34
Alex Stelea
  • 1,219
  • 2
  • 18
  • 29

1 Answers1

52

Add the framework MapKit to your project.

MathieuF
  • 3,130
  • 5
  • 31
  • 34
  • i did, and i added it to my file too really weird... the same files work one their own but when i copy them to my project they fail only when buiding on device – Alex Stelea Nov 18 '10 at 17:55