当我打开IOS模拟器来启动我的应用程序时,它会失败。以前工作正常。我收到以下错误:
Xcode build done. 12.8s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
Could not find an option named "DartDefines".
Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.
Command PhaseScriptExecution 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)
我怀疑此错误是由于计算机上的存储空间不足所致。那可能吗?还是还有其他问题?
答案 0 :(得分:1)
升级颤振后,我遇到了同样的问题。
您必须使用Flutter Channel Beta
尝试将其切换到:
flutter channel dev
flutter upgrade