我刚刚将我的测试设备从 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 中没有任何错误提示)