Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_AFJSONRequestSerializer", referenced from:
objc-class-ref in RequestTool.o
"_OBJC_CLASS_$_AFHTTPSessionManager", referenced from:
objc-class-ref in RequestTool.o
"_OBJC_METACLASS_$_AFJSONResponseSerializer", referenced from:
_OBJC_METACLASS_$_JSONResponseSerializerWithData in JSONResponseSerializerWithData.o
"_OBJC_CLASS_$_AFJSONResponseSerializer", referenced from:
_OBJC_CLASS_$_JSONResponseSerializerWithData in JSONResponseSerializerWithData.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
用CocoaPods导入的库如果报以上错误,可尝试以下步骤:Build Setting->Linking->Other Linker Flags,添加$(inherited)。