开发者

iPhone - linker error when using constants

开发者 https://www.devze.com 2023-03-21 05:23 出处:网络
Why does I have a linker error on this : - (void) reverseGeocoder:(MKReverseGeocoder *)geocoder didFailWithError:(NSError *)error {

Why does I have a linker error on this :

- (void) reverseGeocoder:(MKReverseGeocoder *)geocoder didFailWithError:(NSError *)error {

    if ([[error domain] isEqualToString:MKErrorDomain] && [error code] == MKErrorPlacemarkNotFound) {
          Do things
    }
}


Undefined symbols for architecture i386:
  "_MKErrorDomain", referenced from:
      -[MapController reverseGeocoder:didFailWithError:] in MapController.o
ld: symbol(s) not found for architecture i386
collect2: ld 开发者_如何学Creturned 1 exit status

MapKit framework is included. MapKit/MapKit.h is imported. Everything works fine with MapKit calls when I do not have those lines...


The same question was answered here before. Hope it's going to help you.

0

精彩评论

暂无评论...
验证码 换一张
取 消