当前,我在设备上启动应用程序时遇到问题。通过cocoapods安装rxcocoa和rxswift之后-在模拟器上一切正常,但在设备上却不行。错误提示找不到rxcocoa
这是错误日志:
dyld:库未加载:@ rpath / RxCocoa.framework / RxCocoa引用 从: /private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/rx_goodslist 原因:未找到合适的图像。确实找到了: /private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/Frameworks/RxCocoa.framework/RxCocoa: 代码签名无效 '/private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/Frameworks/RxCocoa.framework/RxCocoa'
/private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/Frameworks/RxCocoa.framework/RxCocoa: stat()失败,错误号为25 /private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/Frameworks/RxCocoa.framework/RxCocoa: 代码签名无效 '/private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/Frameworks/RxCocoa.framework/RxCocoa'
/private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/Frameworks/RxCocoa.framework/RxCocoa: stat()失败,错误号为errno = 1 /private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/Frameworks/RxCocoa.framework/RxCocoa: 代码签名无效 '/private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/Frameworks/RxCocoa.framework/RxCocoa'
/private/var/containers/Bundle/Application/542D3903-715B-4FB9-9418-D25860F6F5AA/rx_goodslist.app/Frameworks/RxCocoa.framework/RxCocoa: stat()失败,错误代码为errno = 1(lldb)
更新:已解决 我刚刚在Pod文件中评论了“ use_fraemworks”,一切都很好