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
出現(xiàn)這種錯誤有多種可能:
1.Build Setting->Architectures查看是否包含arm64指令集
2.如果用CocoaPods導(dǎo)入的庫凄诞,Build Setting->Linking->Other Linker Flags臭笆,添加$(inherited)
3.該類只有@interface,沒有@implementation