iOS开发

iOS Undefined symbols for archit

2018-08-10  本文已影响4093人  沃伦盖茨

Undefined symbols for architecture arm64:
"OBJC_CLASS_YYCache", referenced from: objc-class-ref in LFNetworking.o "_OBJC_CLASS__AFHTTPRequestSerializer", referenced from:
objc-class-ref in LFNetworking.o
"OBJC_CLASS_AFJSONResponseSerializer", referenced from: objc-class-ref in LFNetworking.o "_OBJC_CLASS__AFHTTPSessionManager", referenced from:
objc-class-ref in LFNetworking.o
ld: symbol(s) not found for architecture arm64

出现这种错误有多种可能:

1.Build Setting->Architectures查看是否包含arm64指令集


arm64.png

2.如果用CocoaPods导入的库,Build Setting->Linking->Other Linker Flags,添加$(inherited)


cocoapods.png

暂时列出这几种,以后遇到了再补充

上一篇 下一篇

猜你喜欢

热点阅读