当我在flutter项目中运行flutter run
时,它无法构建iOS应用程序,我得到了这个错误:
Launching lib/main.dart on iPhone 15 Pro Max in debug mode...
Running Xcode build...
Xcode build done. 2.1s
Failed to build iOS app
**Uncategorized (Xcode): Command CodeSign failed with a nonzero exit code
Could not build the application for the simulator.
Error launching application on iPhone 15 Pro Max.**
字符串
我已经更新了Flutter,我的软件(目前在macOS索诺马14. 0上),我重新启动了几次我的Mac,我删除并重新安装了xcode应用程序,删除并重新安装了ios模拟器,什么都不起作用。
1条答案
按热度按时间6yjfywim1#
请打开钥匙串访问并按照以下步骤操作。
1-锁定“登录”钥匙串。2-重新登录,输入您的PC帐户密码。3-在产品菜单中清理项目。4-重新构建。
对我来说很好。