嗨,我正在为ios制作一个应用程序,它使用一个名为Signature.Framework的pod库(基本上允许您制作签名)。当我在XCode模拟器上启动应用程序时,当我在物理设备上测试应用程序时,一切都正常工作,我得到以下错误。还有什么是应得的,我该怎么解决呢?
错误:
dyld: Library not loaded: @rpath/Signature.framework/Signature
Referenced from: /var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/myapp
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature: code signing blocked mmap() of '/private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature'
/private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature: code signing blocked mmap() of '/private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature'
/private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature: stat() failed with errno=1
/private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature: code signing blocked mmap() of '/private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature'
/private/var/containers/Bundle/Application/DD816747-0B6F-46FB-93E6-6C28DCFFED7F/myapp.app/Frameworks/Signature.framework/Signature: stat() failed with errno=1
(lldb)
链接:
最佳答案
解决方案1
在我的例子中,我将Pods.framework设置为optional,它修复了这个问题,.sh脚本没有将其复制到设备,因此应用程序崩溃:
解决方案2
从DerivedData中删除项目User/YourPcName/Library/Developer/Xcode/DerivedData/ProjectNameFolder
关于swift - Framework Pod表示未加载库,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/51512333/