简体   繁体   English

在 iOS 中反应原生构建失败 - PhaseScriptExecution

[英]React native build failed in iOS - PhaseScriptExecution

I am facing issue in react-native project.我在 react-native 项目中遇到问题。 It's working fine in android but build failed in iOS version.它在 android 中运行良好,但在 iOS 版本中构建失败。 I have already tried all possible solution, but didn't get any solution.我已经尝试了所有可能的解决方案,但没有得到任何解决方案。

The main problem is PhaseScriptExecution.主要问题是 PhaseScriptExecution。

Xcode version - 12.4 Xcode 版本 - 12.4

Mac OS version - 11.3 (Big Sur) Mac OS 版本 - 11.3(大苏尔)

npm version - 7.10.0 npm 版本 - 7.10.0

react-native version - 0.64.0 react-native 版本 - 0.64.0

react version - 17.0.1反应版本 - 17.0.1

For mode detail, i am attaching the screenshot.对于模式详细信息,我附上屏幕截图。

/Users/mmdev1/Library/Developer/Xcode/DerivedData/PRJ22-edpcityjusyktkdaxtnvzawndbxa/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-99DF087F7D2E061B36AA638AA7C0AD26.sh: line 4: 16519 Segmentation fault: 11 bash -l -c 'SRCS_DIR=/Users/mmdev1/Documents/RN/PRJ22/node_modules/react-native/scripts/../Libraries CODEGEN_MODULES_OUTPUT_DIR=/Users/mmdev1/Documents/RN/PRJ22/node_modules/react-native/scripts/../React/FBReactNativeSpec/FBReactNativeSpec CODEGEN_MODULES_LIBRARY_NAME=FBReactNativeSpec /Users/mmdev1/Documents/RN/PRJ22/node_modules/react-native/scripts/generate-specs.sh' 2>&1 /Users/mmdev1/Library/Developer/Xcode/DerivedData/PRJ22-edpcityjusyktkdaxtnvzawndbxa/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-99DF087F7D2E061B36AA638AA7C0AD26.sh: line 4: 16519 Segmentation fault: 11 bash -l -c 'SRCS_DIR=/Users/mmdev1/Documents/RN/PRJ22/node_modules/react-native/scripts/../Libraries CODEGEN_MODULES_OUTPUT_DIR=/Users/mmdev1/Documents/RN/PRJ22/node_modules/react-native/scripts /../React/FBReactNativeSpec/FBReactNativeSpec CODEGEN_MODULES_LIBRARY_NAME=FBReactNativeSpec /Users/mmdev1/Documents/RN/PRJ22/node_modules/react-native/scripts/generate-specs.sh' 2>&1

在此处输入图像描述 在此处输入图像描述 在此处输入图像描述

I was getting the same failure, and I have not been able to pinpoint exactly why this works, but in my package.json I changed我遇到了同样的失败,我无法准确指出为什么会这样,但在我的 package.json 中我改变了

"scripts": {
    "ios": "react-native run-ios",
}

to

"scripts": {
    "ios": "unset PREFIX && react-native run-ios",
}

As I was seeing some issues regarding the PREFIX env variable when using Node Versioning Manager (nvm).正如我在使用 Node Versioning Manager (nvm) 时看到的有关 PREFIX env 变量的一些问题。

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

相关问题 Xcode 12.4 React 本机构建在 IOS 中失败显示所有消息命令 PhaseScriptExecution 因非零退出代码而失败 - Xcode 12.4 React native build failed in IOS Showing All Messages Command PhaseScriptExecution failed with a nonzero exit code XCode 版本上的 react-native-config 的 PhaseScriptExecution 失败 - PhaseScriptExecution failed for react-native-config on XCode build React Native 构建命令失败:PhaseScriptExecution ...(域=NSPOSIXErrorDomain,代码=2) - React Native Build Commands Failed: PhaseScriptExecution ... (domain=NSPOSIXErrorDomain, code=2) (React Native)您好,我在使用 npm run ios 时出现错误,我需要帮助:以下构建命令失败:PhaseScriptExecution - (React Native) hello i'm having an error with npm run ios, i need help: The following build commands failed: PhaseScriptExecution 在 IOS 上反应原生构建失败 - React Native Build Failed On IOS 失败的IOS Build React Native - Failed IOS Build React Native React Native iOS构建失败 - React native ios build failed XCode 14 React Native 项目无法运行 iOS:命令 PhaseScriptExecution 失败 - XCode 14 React Native project fails to run iOS: Command PhaseScriptExecution failed React Native - PhaseScriptExecution 错误 - React Native - PhaseScriptExecution Error 反应原生 - Codemagic ios 构建未能发布 - React native - Codemagic ios build failed to publish
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM