Note that there are some explanatory texts on larger screens.

plurals
  1. POMKMapKit and the IOS4
    primarykey
    data
    text
    <p>Hey all, I'm trying to get the MKMapView up and running however I can't seem to get past what seems to be a reference error. I've spent a few hours googling this as well as last night. </p> <p>Header:</p> <pre><code>#import &lt;UIKit/UIKit.h&gt; #import &lt;MapKit/MapKit.h&gt; @interface MapsViewController : UIViewController { MKMapView *mapView; } @end </code></pre> <p>Main:</p> <pre><code>#import "MapsViewController.h" @implementation MapsViewController - (void)viewDidLoad { [super viewDidLoad]; mapView = [[MKMapView alloc] initWithFrame:self.view.frame]; [self.view insertSubview:mapView atIndex:0]; } - (void)didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. [super didReceiveMemoryWarning]; // Release any cached data, images, etc that aren't in use. } - (void)viewDidUnload { // Release any retained subviews of the main view. // e.g. self.myOutlet = nil; } - (void)dealloc { [super dealloc]; [mapView dealloc]; } @end </code></pre> <p>Error:</p> <pre><code>Build Maps of project Maps with configuration Debug Ld build/Debug-iphonesimulator/Maps.app/Maps normal i386 cd /workspace/iphone_dev/Maps setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk -L/workspace/iphone_dev/Maps/build/Debug-iphonesimulator -F/workspace/iphone_dev/Maps/build/Debug-iphonesimulator -filelist /workspace/iphone_dev/Maps/build/Maps.build/Debug-iphonesimulator/Maps.build/Objects-normal/i386/Maps.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -o /workspace/iphone_dev/Maps/build/Debug-iphonesimulator/Maps.app/Maps Undefined symbols: "_OBJC_CLASS_$_MKMapView", referenced from: objc-class-ref-to-MKMapView in MapsViewController.o ld: symbol(s) not found collect2: ld returned 1 exit status </code></pre> <p>I managed to find the MKMapKit.framework in the appropriate folders. Is they anything I'm missing?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload