iPhone-使用常量时出现链接器错误
为什么我在这方面出现链接器错误:iPhone-使用常量时出现链接器错误,iphone,constants,linker-errors,Iphone,Constants,Linker Errors,为什么我在这方面出现链接器错误: - (void) reverseGeocoder:(MKReverseGeocoder *)geocoder didFailWithError:(NSError *)error { if ([[error domain] isEqualToString:MKErrorDomain] && [error code] == MKErrorPlacemarkNotFound) { Do things } } U
- (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调用一切正常…以前也回答过同样的问题。希望对你有帮助