命令 phasescriptexecution 失败,出现非零退出代码 react native IOS

时间:2021-07-08 05:06:51

标签: react-native-ios

我正面临 PhaseScriptExecution 错误 当我尝试构建 IOS 时,项目没有构建这个会出现以下错误

以下构建命令失败: PhaseScriptExecution Bundle\ React\ Native\ 代码\ 和\ 图像/Users/ali/Library/Developer/Xcode/DerivedData/NassauTennisMobileApp-akwowvjtagvlxbalhbsvukoitagy/Build/Intermediates.noindex/NassauTennisMobileApp.build/Debug-iphonesimulator/NassauTennisMobileApp.build/Debug-iphonesimulator/NassauTennisMobileApp1000000000000000000000B .sh

1 个答案:

答案 0 :(得分:-1)

对我来说:似乎 react native 不喜欢目录中的空格。删除目录中的所有空格后,我能够构建我的 ios。

您的问题的潜在解决方案,没有解决我的问题,但它可能对您有所帮助:作者建议您使用的节点版本与 xcode 调用/使用的节点版本不匹配。作者提供了一种检查已安装版本的方法以及一种在两个版本之间进行符号链接的方法 => https://dev.to/glocore/react-native-command-phasescriptexecution-failed-of9