为什么我的 flutter 项目无法构建 ios 应用程序?

问题描述 投票:0回答:1

当我在我的 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 Sonoma 14.0 上),我重新启动了几次我的 Mac,我删除并重新安装了 xcode 应用程序,删除并重新安装了 ios 模拟器,但没有任何效果。

flutter xcode dart build ios-simulator
1个回答
0
投票

请打开钥匙串访问并按照以下步骤操作。

1- 锁定“登录”钥匙串。 2-解锁,输入您的电脑帐户密码。 3- 产品菜单中的清理项目。 4-再次构建它。

对我来说效果很好。

© www.soinside.com 2019 - 2024. All rights reserved.