我刚刚将我的测试设备从 13.1.2 更新到最新更新 13.3.1。(在 13.1.2 应用程序中的更新在设备中运行之前没有任何错误)。现在我得到了要构建的项目,但是在启动屏幕之后,我收到一条错误消息:
dyld: Library not loaded: @rpath/AWSCognito.framework/AWSCognito
Referenced from: /private/var/containers/Bundle/Application/EE997A49-F99F-42B0-BBF8-FDC1FF967F84/demo.app/test demo
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/EE997A49-F99F-42B0-BBF8-FDC1FF967F84/test demo.app/Frameworks/AWSCognito.framework/AWSCognito: code signature invalid for '/private/var/containers/Bundle/Application/EE997A49-F99F-42B0-BBF8-FDC1FF967F84/test demo.app/Frameworks/AWSCognito.framework/AWSCognito'
/private/var/containers/Bundle/Application/EE997A49-F99F-42B0-BBF8-FDC1FF967F84/test demo.app/Frameworks/AWSCognito.framework/AWSCognito: code signature invalid for '/private/var/containers/Bundle/Application/EE997A49-F99F-42B0-BBF8-FDC1FF967F84/test demo.app/Frameworks/AWSCognito.framework/AWSCognito'
/private/var/containers/Bundle/Application/EE997A49-F99F-42B0-BBF8-FDC1FF967F84/test demo.app/Frameworks/AWSCognito.framework/AWSCognito: stat() failed with errno=1
/private/var/containers/Bundle/Application/EE997A49-F99F-42B0-BBF8-FDC1FF967F84/test demo.app/Frameworks/AWSCognito.framework/AWSCognito: code signature invalid for '/private/var/containers/Bundle/Application/EE997A49-F99F-42B0-BBF8-FDC1FF967F84/test demo.app/Frameworks/AWSCognito.framework/AWSCognito'
/private/var/containers/Bundle/Application/EE997A49-F99F-42B0-BBF8-FDC1FF967F84/test demo.app/Frameworks/AWSCognito.framework/AWSCognito: stat() failed with errno=1
Message from debugger: failed to send the k packet
我尝试过以下解决方案
清理,构建然后运行项目。没有为我工作。
清洁并重新安装 Pod
删除派生数据并重新安装 pod
仍然正常工作(在更高版本 13.1.2 中没有任何错误提示)
有人有想法吗?
如果你使用 Cocoapods,你可以从你的 Podfile 中删除或评论 # use_frameworks!
并重新安装它,现在应该可以解决这个问题。在更新 13.3.1 设备上运行应用程序之前,不要忘记清理构建文件夹。
快乐的绳索
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句