-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[RN@0.73.1][iOS] An issue with with-environment.sh
script
#42164
Comments
|
Agh... I see, like in another script I had problems with, it should read at the line 16: NODE_BINARY=$(command -v node || echo "") |
Yup @birdofpreyru could you send a PR that fixes this? |
Hey @cortinico I've created PR #42181 into 0.73-stable branch, but I have doubts now... will you remind me, please, should be PRs done into such version branch, or into main, to not be lost in future RN versions? |
In this case, let's do the fix against |
Ok @cortinico , here is the correct PR into main — #42184 |
Summary: Closes facebook#42164 ## Changelog: [IOS] [FIXED] - Fixes `with-environment.sh` script for the case when Node can't be found prior to loading `.xcode.env` Pull Request resolved: facebook#42184 Test Plan: This is a trivial update, no need for much testing. Reviewed By: cortinico Differential Revision: D52602653 Pulled By: cipolleschi fbshipit-source-id: 0881456bf165d895252ae38cb7c7aee945cfaf52
Summary: Closes facebook#42164 ## Changelog: [IOS] [FIXED] - Fixes `with-environment.sh` script for the case when Node can't be found prior to loading `.xcode.env` Pull Request resolved: facebook#42184 Test Plan: This is a trivial update, no need for much testing. Reviewed By: cortinico Differential Revision: D52602653 Pulled By: cipolleschi fbshipit-source-id: 0881456bf165d895252ae38cb7c7aee945cfaf52
Summary: Closes #42164 ## Changelog: [IOS] [FIXED] - Fixes `with-environment.sh` script for the case when Node can't be found prior to loading `.xcode.env` Pull Request resolved: #42184 Test Plan: This is a trivial update, no need for much testing. Reviewed By: cortinico Differential Revision: D52602653 Pulled By: cipolleschi fbshipit-source-id: 0881456bf165d895252ae38cb7c7aee945cfaf52
Description
If I call
with-environment.sh
from XCode build phase, it fails to me here, at the line 17:react-native/packages/react-native/scripts/xcode/with-environment.sh
Lines 15 to 17 in cabae39
I have node installed via NVM, so
NODE_BINARY
there is empty. In my.xcode.env
I have the correct init codeafter which that
command -v node
would work alright. But, I guess, thatNODE_BINARY
export is intentionally placed before the environment loading commands below, and thus should be somehow corrected in-place to not fail the shell script?Steps to reproduce
N/A
React Native Version
0.73.1
Affected Platforms
Build - MacOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
N/A
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: