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

Export REACT_NATIVE_PATH and fix find-node-for-xcode.sh fallback behavior #33674

Closed
wants to merge 1 commit into from

Conversation

cipolleschi
Copy link
Contributor

@cipolleschi cipolleschi commented Apr 20, 2022

Issue

In D35317070 (0480f56) we introduced a way to configuring the Xcode environment via he .xcode.env, falling back to the old find-node-for-xcode.sh behavior in case of a misconfiguration.

Unfortunately, there were an issue with the new architecture for which the pods were not able to locate the find-node-for-xcode.sh, crashing while building the new architecture.

Solution

This Diff solves the issue in two steps:

  1. it exposes to the project the REACT_NATIVE_PATH like Android does here: D35451821 (f8d7e0a)
  2. it leverages this new variables to reach the script

NOTE

This pr depends on this and this

Changelog

[iOS][Changed] - Fixed the fallback behavior when the .xcode.env file is missing, actually using the old find-node-for-xcode.sh script

Differential Revision: D35779165

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Apr 20, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D35779165

@react-native-bot react-native-bot added the Platform: iOS iOS applications. label Apr 20, 2022
@analysis-bot
Copy link

analysis-bot commented Apr 20, 2022

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 29c5461
Branch: main

@analysis-bot
Copy link

analysis-bot commented Apr 20, 2022

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,774,114 +0
android hermes armeabi-v7a 7,179,991 +0
android hermes x86 8,083,200 +0
android hermes x86_64 8,063,151 +0
android jsc arm64-v8a 9,647,414 +0
android jsc armeabi-v7a 8,421,694 +0
android jsc x86 9,596,703 +0
android jsc x86_64 10,194,058 +0

Base commit: 29c5461
Branch: main

…vior (facebook#33674)

Summary:
Pull Request resolved: facebook#33674

## Issue
In D35317070 (facebook@0480f56) we introduced a way to configuring the Xcode environment via he `.xcode.env`, falling back to the old `find-node-for-xcode.sh` behavior in case of a misconfiguration.

Unfortunately, there were an issue with the new architecture for which the pods were not able to locate the `find-node-for-xcode.sh`, crashing while building the new architecture.

## Solution
This Diff solves the issue in two steps:
1. it exposes to the project the REACT_NATIVE_PATH like Android does here: D35451821 (facebook@f8d7e0a)
2. it leverages this new variables to reach the script

## Changelog
[iOS][Changed] - Fixed the fallback behavior when the `.xcode.env` file is missing, actually using the old `find-node-for-xcode.sh` script

Differential Revision: D35779165

fbshipit-source-id: 8bb96dcc68c9634ef4d00fdbed612f377af2ee41
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D35779165

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @cipolleschi in 705c6f5.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Apr 21, 2022
Saadnajmi pushed a commit to Saadnajmi/react-native-macos that referenced this pull request Jan 15, 2023
…vior (facebook#33674)

Summary:
Pull Request resolved: facebook#33674
In D35317070 (facebook@0480f56) we introduced a way to configuring the Xcode environment via he `.xcode.env`, falling back to the old `find-node-for-xcode.sh` behavior in case of a misconfiguration.

Unfortunately, there were an issue with the new architecture for which the pods were not able to locate the `find-node-for-xcode.sh`, crashing while building the new architecture.
This Diff solves the issue in two steps:
1. it exposes to the project the REACT_NATIVE_PATH like Android does here: D35451821 (facebook@f8d7e0a)
2. it leverages this new variables to reach the script
[iOS][Changed] - Fixed the fallback behavior when the `.xcode.env` file is missing, actually using the old `find-node-for-xcode.sh` script

Reviewed By: dmitryrykun

Differential Revision: D35779165

fbshipit-source-id: 393ef9a0b98d32d9cf226f7d109fdefd772e5120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner Platform: iOS iOS applications.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants