为什么我有一个链接器错误:
- (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 returned 1 exit status
包含MapKit框架。 导入MapKit / MapKit.h。 当我没有那些行时,MapKit调用一切正常......