Я впервые работаю со службами определения местоположения, и у меня появляется ошибка компоновщика:
Неопределенные символы для архитектуры i386: "_OBJC_CLASS _ $ _ CLLocationManager"
Я добавил #import <CoreLocation/CoreLocation.h>
и добавил следующие строки в 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];
![enter image description here](https://i.stack.imgur.com/y9UJM.png)