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

macOS Sequoia下React Native iOS构建报错:Command PhaseScriptExecution退出码非零

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

我在macOS Sequoia 15.1.0搭配Xcode 16.1的环境下运行React Native iOS应用时,构建阶段触发错误:Command PhaseScriptExecution failed with a nonzero exit code。现有项目和新创建的React Native项目均出现该问题,导致开发无法推进。

已尝试的解决方案

  • 重装并更新Xcode至16.1版本
  • 将CocoaPods更新至最新版1.16.2
  • 执行xcodebuild clean命令,并手动删除DerivedData文件夹清理派生数据
  • 在ios目录重新执行pod install安装依赖
  • 尝试直接通过Xcode而非CLI运行应用
  • 确认Homebrew已更新至4.4.5版本
  • 在新建项目中执行react-native run-ios命令

环境详情

  • macOS版本:Sequoia 15.1.0
  • Xcode版本:16.1
  • CocoaPods版本:1.16.2
  • Homebrew版本:4.4.5
  • React Native版本:(请在此指定版本,例如0.72.x)

内容的提问来源于stack exchange,提问作者Muhammad Akbar

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.16 04:40:54