dyld:库未加载:代码签名无效 [英] dyld: Library not loaded: code signature invalid
问题描述
我正在尝试构建和运行一个使用 AVFoundation 框架的应用程序......
(我知道这是重复的,但其他地方发布的解决方案对我没有帮助.)
我构建成功,但是当我从 Xcode 重新运行它时应用程序崩溃并出现以下错误:
<代码>>dyld:库未加载:@rpath/libswiftAVFoundation.dylib引用自:/private/var/containers/Bundle/Application/B9B93BB2-F55E-4DAE-A720-0F2D22A47278/FaceMarks.app/FaceMarks原因:没有找到合适的图片.有没有发现:/private/var/containers/Bundle/Application/B9B93BB2-F55E-4DAE-A720-0F2D22A47278/FaceMarks.app/Frameworks/libswiftAVfoundation.dylib:>代码签名对/private/var/containers/Bundle/Application/B9B93BB2-F55E-4DAE-A720-0F2D22A47278/FaceMarks.app/Frameworks/libswiftAVfoundation.dylib"无效>数据库
完整的错误信息:
我找到了很多解决方案,我测试了其中的很多,但所有这些都不适合我:
<块引用>- 清理、构建和运行应用程序
<块引用>
- 设置始终嵌入 Swift 标准库";对是"在构建设置"下 >构建选项
<块引用>
- 重启Xcode
<块引用>
- 重启手机
<块引用>
- 重新安装 Xcode
<块引用>
- 在我的 iPhone 上测试其他简单的应用程序(该应用程序仅包含打印功能)
<块引用>
注意:该测试应用程序在模拟器上运行良好,但在我的 iPhone 上却出现相同的错误
dyld:库未加载:@rpath/libswiftCore.dylib
我使用付费开发者帐户修复了这个错误.
I'm trying to build and run an application that uses the AVFoundation framework ...
( I know that this is duplicate, but the solutions posted elsewhere doesn't help me.)
I build successfully but the app crashes when I re-run it from Xcode with the following error:
> dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib
Referenced from : /private/var/containers/Bundle/Application/B9B93BB2-F55E-4DAE-A720-0F2D22A47278/FaceMarks.app/FaceMarks
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/B9B93BB2-F55E-4DAE-A720-0F2D22A47278/FaceMarks.app/Frameworks/libswiftAVfoundation.dylib:
>code signature invalid for '/private/var/containers/Bundle/Application/B9B93BB2-F55E-4DAE-A720-0F2D22A47278/FaceMarks.app/Frameworks/libswiftAVfoundation.dylib'
> lldb
The complete error message :
I have found many solutions, I have tested many of them but all of those not worked for me:
- Clean, build and run an application
- Set "Always Embed Swift Standard Libraries" to "Yes" under the Build Settings > Build Options
- Restart Xcode
- Restart the phone
- Reinstall the Xcode
- Testing other simple application on my iPhone ( App contains just a print function )
Note: That the test app works fine on the simulator but on my iPhone it gives the same error
dyld: Library not loaded: @rpath/libswiftCore.dylib
I fixed this error by using a paid developer account.
这篇关于dyld:库未加载:代码签名无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!