Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MapKit not working on device but works in simulator

I have added the frameworks (MapKit and CoreLocation) by selecting the Frameworks folder, right clicking, Add > Existing Frameworks.

The app builds in the Simulator (3.1.3) but fails on the Device (3.1.3) with the error:

ld: warning: in /Development/Sites/iPhone Projects/SwitchViews/MapKit.framework/MapKit, file is not of required architecture Undefined symbols:
"_OBJC_CLASS_$_MKPinAnnotationView", referenced from: __objc_classrefs__DATA@0 in NextView.o ld: symbol(s) not found collect2: ld returned 1 exit status

like image 997
daihovey Avatar asked Dec 12 '25 00:12

daihovey


1 Answers

It seems that I just needed to restart Xcode to get things linked up properly.

like image 120
daihovey Avatar answered Dec 13 '25 16:12

daihovey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!