【发布时间】:2020-07-25 06:59:29
【问题描述】:
我开始学习颤振。我已经为颤振安装了所有东西。我使用命令flutter create xyz 创建了第一个flutter 应用程序,然后我使用flutter run 在iOS 模拟器中启动了该应用程序。它工作正常,可以毫无问题地启动默认的颤振计数器应用程序。现在,当我在 VS Code 中打开项目并尝试使用 run with debugging 选项从那里启动时,应用程序不会在 iOS 模拟器中启动。相反,它给了我以下错误。
Launching lib/main.dart on iPhone 11 in debug mode...
Xcode build done. 15.8s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode 的输出: ↳
/Users/maxim/Desktop/flutterAppFolder/second_app/build/ios/Debug-iphonesimulator/Runner.app: resource fork, Finder information, or similar detritus not allowed
Command CodeSign failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11.
Exited (sigterm)
PS。实际上,我之前使用过颤振,就像我在颤振应用程序上使用 vs 代码之前的一个小时,它运行良好。它在 iOS 模拟器中启动应用程序没有任何问题。
【问题讨论】:
-
在终端运行flutter doctor,然后在此处发布日志,或者您可以在查看日志后自行修复
标签: flutter visual-studio-code simulator