それは私がロケーションサービスで働いていると私は、このリンカエラー当たっています最初の時間です:私が追加した- 「i386" アーキテクチャのための未定義のシンボル
Undefined symbols for architecture i386: "_OBJC_CLASS_$_CLLocationManager"
を#import <CoreLocation/CoreLocation.h>
とあなたがヨーヨーにCoreLocationフレームワークを追加する必要がviewDidLoad
CLLocationManager *manager = [[CLLocationManager alloc] init];
manager.delegate = self;
[manager startUpdatingLocation];
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
if (![CLLocationManager locationServicesEnabled]){
UIAlertView *servicesDisabledAlert = [[UIAlertView alloc] initWithTitle:@"Location Services Disabled" message:@"You currently have all location services for this device disabled. If you proceed, you will be asked to confirm whether location services should be reenabled." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[servicesDisabledAlert show];
[servicesDisabledAlert release];
}
[manager release];
質問タイトルをよりわかりやすいように編集したい場合があります。 –
はい!すぐにする – Legolas
[未定義のシンボルエラーを解決するには?](http://stackoverflow.com/questions/804510/how-to-resolve-undefined-symbols-error) –