简体   繁体   English

Flutter 模拟器错误:命令 PhaseScriptExecution 失败,退出代码非零

[英]Flutter simulator error: Command PhaseScriptExecution failed with a nonzero exit code

I have created a new flutter project on Android studio.我在 Android Studio 上创建了一个新的 flutter 项目。 When I try to run it on emulator it gives this error:当我尝试在模拟器上运行它时,它给出了这个错误:

PhaseScriptExecution failed with a nonzero exit code

When I check the "For install builds only" checkbox in the Target>Build Phases>Run Scripts or when I exclude arm64 architecture, it gives another error当我在 Target>Build Phases>Run Scripts 中选中“For install builds only”复选框时,或者当我排除 arm64 架构时,它会给出另一个错误

'Flutter/Flutter.h' file not found

I have tried deleting and recreating the ios directory, but no luck.我尝试删除并重新创建 ios 目录,但没有成功。

Flutter doctor and everything works completely fine颤振医生,一切正常

Please help me请帮我

Thanks in advance提前致谢

SOLVED!解决了! Flutter version on my mac was higher than the flutter version where I coded the application on… So I just downgraded my flutter to the version I coded on And tada Error resolved Make sure you are on the same version of flutter as the laptop you coded on In my case I coded it on old version of flutter on my windows laptop and tired to run on latest version of flutter so the error popped up.If this is not your case then go through the below link - error: 'Flutter/Flutter.h' file not found when flutter run on iOS我的 mac 上的 Flutter 版本高于我在其上编码应用程序的 flutter 版本......所以我只是将我的 flutter 降级到我编码的版本并且 tada 错误已解决确保您使用与您编码的笔记本电脑相同的 flutter 版本就我而言,我在 Windows 笔记本电脑上的旧版本 flutter 上对其进行了编码,并且厌倦了在最新版本的 flutter 上运行,因此出现错误。在 iOS 上运行 Flutter 时找不到 h' 文件

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 命令 PhaseScriptExecution 失败,退出代码为非零 flutter - Command PhaseScriptExecution failed with a nonzero exit code flutter Flutter:命令 PhaseScriptExecution 失败,退出代码非零 - Flutter: Command PhaseScriptExecution failed with a nonzero exit code 命令 PhaseScriptExecution 失败,退出代码非零 (Flutter) - Command PhaseScriptExecution failed with a nonzero exit code (Flutter) Xcode Flutter ScaffoldState 命令 PhaseScriptExecution 因非零退出代码错误而失败 - Xcode Flutter ScaffoldState Command PhaseScriptExecution failed with a nonzero exit code Error flutter Xcode 错误命令 PhaseScriptExecution 失败,退出代码非零 - flutter Xcode error Command PhaseScriptExecution failed with a nonzero exit code Flutter:错误 Xcode:命令 PhaseScriptExecution 失败,退出代码非零 - Flutter: error Xcode: command PhaseScriptExecution failed with a nonzero exit code 无法在 iOS 模拟器上运行 Flutter 应用程序/命令 PhaseScriptExecution 失败,退出代码为非零 - cannot run Flutter application on iOS simulator / Command PhaseScriptExecution failed with a nonzero exit code Flutter 无法 package。 命令 PhaseScriptExecution 失败,退出代码非零 - Flutter Failed to package. Command PhaseScriptExecution failed with a nonzero exit code 如何使用非零退出代码修复 Command PhaseScriptExecution 失败 - Flutter? - How to fix Command PhaseScriptExecution failed with a nonzero exit code - Flutter? flutter swift Command PhaseScriptExecution 失败,退出代码为非零 - flutter swift Command PhaseScriptExecution failed with a nonzero exit code
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM