ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AFHTTPRequestSerializer", referenced from:
objc-class-ref in ICBCPaySDK(ICBCPaySDK.o)
"_OBJC_CLASS_$_AFHTTPResponseSerializer", referenced from:
objc-class-ref in ICBCPaySDK(ICBCPaySDK.o)
"_OBJC_CLASS_$_AFHTTPSessionManager", referenced from:
objc-class-ref in ICBCPaySDK(ICBCPaySDK.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame
Undefined symbol: _OBJC_CLASS_$_AFHTTPRequestSerializer
Undefined symbol: _OBJC_CLASS_$_AFHTTPResponseSerializer
Undefined symbol: _OBJC_CLASS_$_AFHTTPSessionManager
求解决办法
3 个回复
unicorn_up
同问
t***@qq.com - 寒弦
同问,也是遇到这个问题。
而且第三方静态库还引用了第三方依赖
夜雨声烦shj
先单独编译下三方库,如果成功。
在主工程中编译一下,找下错误提示中的类去看看是不是三方库中又依赖了别的库。
是的话在主工程target的Link Binary With Libraries中要把报错所在的库要手动添加一下。