r***@qq.com
r***@qq.com
  • 发布:2019-08-27 22:26
  • 更新:2020-09-03 16:18
  • 阅读:2646

iOS离线打包,导入第三方的静态库,编译报错: does not use RBP or RSP based frame

分类:5+ SDK
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

求解决办法

2019-08-27 22:26 负责人:无 分享
已邀请:
unicorn_up

unicorn_up

同问

t***@qq.com

t***@qq.com - 寒弦

同问,也是遇到这个问题。

而且第三方静态库还引用了第三方依赖

夜雨声烦shj

夜雨声烦shj

先单独编译下三方库,如果成功。
在主工程中编译一下,找下错误提示中的类去看看是不是三方库中又依赖了别的库。
是的话在主工程target的Link Binary With Libraries中要把报错所在的库要手动添加一下。

该问题目前已经被锁定, 无法添加新回复