【发布时间】:2021-09-27 14:19:35
【问题描述】:
昨天,我创建了一个名为 sample1 的颤振项目。 我工作得很好。 但是当我今天尝试打开文件并尝试运行它时,出现了错误。
日志说
Running "flutter pub get" in sample1... 603ms
Launching lib/main.dart on iPhone 8 in debug mode...
Running pod install... 1,313ms
Running Xcode build...
Xcode build done. 11.8s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve
this, select a development team in the Runner editor. (in target 'Runner' from project 'Runner')
Could not build the application for the simulator.
Error launching application on iPhone 8.
我想我已经尝试了这里写的所有东西,除了像
pub upgrade
pub run
因为它说
zsh: command not found: pub
Could not build the application for the simulator. Error launching application on iPhone 11 Pro Max
安卓版本运行良好。 请帮助我。 谢谢
编辑** 我刚刚新建了一个项目,看起来运行良好,但我担心下次打开它就无法运行了。
【问题讨论】: