iOS Library not loaded And Reason- image not found

原创文章
声明:作者声明此文章为原创,未经作者同意,请勿转载,若转载,务必注明本站出处,本平台保留追究侵权法律责任的权利。
全栈老韩
全栈工程师,擅长iOS App开发、前端(vue、react、nuxt、小程序&Taro)开发、Flutter、React Native、后端(midwayjs、golang、express、koa)开发、docker容器、seo优化等。

dyld: Library not loaded: @rpath/RxCocoa.framework/RxCocoa
Referenced from: /Users/hanweixing/Library/Developer/CoreSimulator/Devices/81C2B877-2B99-4E1D-8CE6-8B58D0FF3B55/data/Containers/Bundle/Application/9A8E6CAB-A04B-4804-BB2F-CA08FF70144C/TapatalkFree.app/TapatalkFree
Reason: image not found

可以从stackoverflow上找到类似的issue,发现一个类似的:
https://stackoverflow.com/questions/24333981/ios-app-with-framework-crashed-on-device-dyld-library-not-loaded-xcode-6-beta

摘取其中的一句:

In the target's General tab, there is an Embedded Binaries field. When you add the framework there the crash is resolved.

但是这个回答并不适用于所有类似的情况,我的工程中就是由于第三方库在pod install的时候,并没有完全download下来,而由于项目中集成的库太多,导致在终端并没有留意其中的提示。

所以我的项目中,由于编译成静态.a库的时候,库并没有编译完整,检查网络环境,确保pod install成功,编译完整之后就成功了。

暂无评论,快来发表第一条评论吧