美文网首页程序员
Library not loaded: @rpath/xxx.f

Library not loaded: @rpath/xxx.f

作者: iccu | 来源:发表于2020-05-14 16:06 被阅读0次

最近需要使用WebRTC,从GitHub上下载了别人写的Demo在真机上运行,发现一直出问题,一运行跑起来就报错:


**dyld: Library not loaded: @rpath/WebRTC.framework/WebRTC**

**Referenced from: /private/var/containers/Bundle/Application/3CBB3D65-15DB-4033-A1B8-5316A2B98C80/WebRTC_new.app/WebRTC_new**

**Reason: no suitable image found.  Did find:**

**......**

从网上找了很多的办法,都没能解决我的问题或者运行到WebRTC的地方就崩溃了。最后在https://stackoverflow.com/questions/60015309/how-to-run-an-ios-app-that-causes-runtime-error-for-frameworks-code-signature-i找到解决办法。

问题探究

同时满足以下三个条件就会导致这个问题:

  • 免费版的开发者账号

  • 使用cocoapods

  • 设备版本13.3

原因:iOS13.3.1会破坏免费开发者账号的第三方签名

解决办法:

  • 办法一:使用付费版开发者账号

  • 办法二:升级设备到最新版本(iOS13.3以上)

  • 办法三:Podfile中去掉use_frameworks!,然后加上use_modular_headers!,然后执行pod卸载第三方库重装第三方库,最后clean一下项目(Command-Shift-K)重新运行

贼坑。。。两天没干别的事光搜解决办法了。。。

相关文章

网友评论

    本文标题:Library not loaded: @rpath/xxx.f

    本文链接:https://www.haomeiwen.com/subject/bjntohtx.html