Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 在模拟器中启动颤振应用程序时出错_Flutter - Fatal编程技术网

Flutter 在模拟器中启动颤振应用程序时出错

Flutter 在模拟器中启动颤振应用程序时出错,flutter,Flutter,当我打开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". R

当我打开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)
Xcode构建完成。12.8s
无法生成iOS应用程序
Xcode生成的错误输出:
↳
**构建失败**
Xcode的输出:
↳
找不到名为“DartDefines”的选项。
运行“颤振-h”(或“颤振-h”)以获取可用的颤振命令和选项。
命令PhaseScriptExecution失败,退出代码为非零
注意:使用新的构建系统
注:并行构建目标
注:规划建造
注意:构建构建描述
无法为模拟器生成应用程序。
在iPhone 11上启动应用程序时出错。
退出(sigterm)

我怀疑这个错误是由于我的计算机上没有足够的存储空间造成的。可能吗?或者还有其他问题吗?

升级颤振后,我也遇到了同样的问题
您必须使用颤振通道测试版
尝试将其切换到:

flutter channel dev 
flutter upgrade

是的,我升级了颤振,它做到了这一点。我会努力做到的