[iPhone] MapKit link irregularity
[iPhone] MapKit link irregularity
- Subject: [iPhone] MapKit link irregularity
- From: David Rowland <email@hidden>
- Date: Thu, 12 Aug 2010 17:48:14 -0700
I'm putting MapKit into my iPhone/iPad app, and the link stage is giving me an error I don't understand. When I direct it to the Simulator all is well. When I choose the Device I get a link error,
"_OBJC_CLASS_$_MKMapView", referenced from:
objc-class-ref-to-MKMapView in MapViewController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
The offending code is this line,
mapView = [[MKMapView alloc] initWithFrame:screenRect];
If I remove it, there is no link error (and no map either, of course).
I'm sure I am using compatible SDKs, and the Simulator links and runs as I expect. Does anyone recognize this?
David
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden