You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Flutter iOS构建报错:Command PhaseScriptExecution failed with a nonzero exit code

Flutter iOS构建失败:Command PhaseScriptExecution failed with a nonzero exit code

各位好,我遇到了Flutter跨平台开发的棘手问题,想请教大家:

我的App在Android端运行一切正常,构建也能顺利完成,但用Xcode构建iOS版本时,总是弹出错误:Command PhaseScriptExecution failed with a nonzero exit code。

我已经尝试了这些修复手段,但都没能解决问题:

  • 执行flutter clean清理项目缓存
  • 在iOS目录下重新运行pod install
  • 开启Xcode的Legacy Build模式
  • 查阅过相关的GitHub问题讨论

这里附上错误截图,方便大家查看具体报错细节:
iOS构建错误截图

希望有经验的朋友能帮忙分析可能的原因,或者提供可行的解决方案,非常感谢!

内容的提问来源于stack exchange,提问作者Shameem Reza

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.09 00:42:32