0
增加了對錯誤代碼的測試MKReverseGeocoder的回調後,得到了表明_MKErrorDomain沒有定義鏈接錯誤:連接器找不到MKErrorDomain
- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFailWithError:(NSError *)error {
// some useful but irrelevant code removed here...
// if the error is not permanent, try again
NSString *errorDomain = [error domain];
NSInteger errorCode = [error code];
if ([errorDomain isEqualToString:MKErrorDomain] && errorCode != MKErrorPlacemarkNotFound) {
[self scheduleReverseLookup];
}
}
鏈接錯誤:
Undefined symbols for architecture armv6:
"_MKErrorDomain", referenced from:
-[Tracker reverseGeocoder:didFailWithError:] in Tracker.o
注意MapKit是被鏈接並且與MKErrorDomain被移除的測試正常工作。