Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FBReactNativeSpec: Command PhaseScriptExecution failed with a nonzero exit code #33775

Closed
galihlprakoso opened this issue May 6, 2022 · 5 comments
Labels
Impact: Misconfiguration When the issue is due to a misconfig for the user Platform: iOS iOS applications. Priority: Low Stale There has been a lack of activity on this issue and it may be closed soon. Tech: React Native Core Issue related to the Core of React Native Type: Old Architecture For issues related to the old architecture

Comments

@galihlprakoso
Copy link

Description

The react-native is working fine on debug and release build running on iphone device and emulators. But when I tried to archive (preparation to be uploaded on ios app store). It's failing.

/Users/mymac/.asdf/shims/node: line 4: /opt/homebrew/Cellar/asdf/0.9.0/libexec/bin/asdf: No such file or directory
/Users/mymac/.asdf/shims/node: line 4: exec: /opt/homebrew/Cellar/asdf/0.9.0/libexec/bin/asdf: cannot execute: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code

I've tried some of available workarounds as discussed here: react-native-community/upgrade-support#161 but none of them is working.

Version

0.66.0

Output of npx react-native info

System:
OS: macOS 12.0.1
CPU: (8) arm64 Apple M1
Memory: 156.25 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.19.1 - /opt/homebrew/opt/node@14/bin/node
Yarn: 1.22.18 - /opt/homebrew/bin/yarn
npm: 6.14.16 - /opt/homebrew/opt/node@14/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: 2021.1 AI-211.7628.21.2111.8193401
Xcode: 13.3/13E113 - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.66.0 => 0.66.0
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

Run Product >> Archive on XCode.

Snack, code example, screenshot, or link to a repository

No response

@cortinico
Copy link
Contributor

/Users/mymac/.asdf/shims/node: line 4: /opt/homebrew/Cellar/asdf/0.9.0/libexec/bin/asdf: No such file or directory

Build is failing as it's trying to search for asdf. Are you using any Node version manager? How have you configured them?

@cipolleschi cipolleschi added Platform: iOS iOS applications. Tech: React Native Core Issue related to the Core of React Native Impact: Misconfiguration When the issue is due to a misconfig for the user Type: Old Architecture For issues related to the old architecture Priority: Low and removed Needs: Triage 🔍 labels May 17, 2022
@bozaigao

This comment was marked as spam.

@galihlprakoso
Copy link
Author

For now, I can hotfix it by following this step: react-native-community/upgrade-support#161 (comment) .

@github-actions
Copy link

github-actions bot commented Feb 8, 2023

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Feb 8, 2023
@github-actions
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

@facebook facebook locked as resolved and limited conversation to collaborators Feb 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Impact: Misconfiguration When the issue is due to a misconfig for the user Platform: iOS iOS applications. Priority: Low Stale There has been a lack of activity on this issue and it may be closed soon. Tech: React Native Core Issue related to the Core of React Native Type: Old Architecture For issues related to the old architecture
Projects
None yet
Development

No branches or pull requests

4 participants