You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
I was trying to build the rn-tester app on Apple Silicon Mac (M3 Pro) and encountered build failures with command PhaseScriptExecution failed with a nonzero exit code. Installing Rosetta 2 resolved this issue, indicating it's required for proper x86_64 command execution on Apple Silicon. This PR documents this requirement.
Changelog:
[INTERNAL] [FIXED] - updated build instructions for RN Tester in Apple silicon based machines
Test Plan:
Running xcworkspace in Xcode resulted in error, now the app builds successfully.
📋 Missing Summary - Can you add a Summary? To do so, add a "## Summary" section to your PR description. This is a good place to explain the motivation for making this change.
⚠️
📋 Missing Test Plan - Can you add a Test Plan? To do so, add a "## Test Plan" section to your PR description. A Test Plan lets us know how these changes were tested.
Biki-das
changed the title
updated build instructions for Apple silicon based machines
updated build instructions for RN Tester in Apple silicon based machines
Nov 2, 2024
I was trying to build the rn-tester app on Apple Silicon Mac (M3 Pro) and encountered build failures with command PhaseScriptExecution failed with a nonzero exit code. Installing Rosetta 2 resolved this issue, indicating it's required for proper x86_64 command execution on Apple Silicon
That's actually not necessary. I've been building RNTester on a M1 Max without rosetta installed without problems. You probably had a different issue. @cipolleschi can also tell you more about M1 support for building React Native.
Yeah i might be wrong but can we execute x84 commands? if rosetta is not installed by default, i was getting the hermes phase execution error. As i installed rosetta, it happened to make build successfully.
@Biki-das I suggest you to expand the error in Xcode to actually understand what you are missing.
Rosetta is not necessary, but there are a number of possible causes for the error you are seeing:
you have not setup the NODE_BINARY variable properly in your xcode.env.local file
you might have a stale version of Hermes
Some other issue we have to investigate.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.Shared with MetaApplied via automation to indicate that an Issue or Pull Request has been shared with the team.
5 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
I was trying to build the rn-tester app on Apple Silicon Mac (M3 Pro) and encountered build failures with command PhaseScriptExecution failed with a nonzero exit code. Installing Rosetta 2 resolved this issue, indicating it's required for proper x86_64 command execution on Apple Silicon. This PR documents this requirement.
Changelog:
[INTERNAL] [FIXED] - updated build instructions for RN Tester in Apple silicon based machines
Test Plan:
Running
xcworkspacein Xcode resulted in error, now the app builds successfully.