Skip to content

fix: Hermes prepare_command fails with space in path - #45316

Closed
okwasniewski wants to merge 1 commit into
react:mainfrom
okwasniewski:fix/pod-install-fail
Closed

fix: Hermes prepare_command fails with space in path#45316
okwasniewski wants to merge 1 commit into
react:mainfrom
okwasniewski:fix/pod-install-fail

Conversation

@okwasniewski

Copy link
Copy Markdown
Contributor

Summary:

This PR fixes a case where the user initializes react native in a directory that contains a space.

It was causing pod install to fail because the path to create-dummy-hermes-xcframework.sh script wasn't in a string.

Changelog:

[IOS] [FIXED] - Hermes prepare_command fails with space in path

Test Plan:

  1. Create a directory with space in path
  2. Initialize React Native inside
  3. Install pods
  4. Check if pod install doesn't fail

@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: Callstack Partner: Callstack Partner labels Jul 8, 2024
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Jul 8, 2024
@okwasniewski

Copy link
Copy Markdown
Contributor Author

Hey @cipolleschi can you take a look at this? It's a small fix

@cipolleschi cipolleschi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @okwasniewski for the fix!

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cipolleschi merged this pull request in fbcb8f6.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jul 18, 2024
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @okwasniewski in fbcb8f6

When will my fix make it into a release? | How to file a pick request?

Saadnajmi added a commit to Saadnajmi/react-native-macos that referenced this pull request Jul 19, 2026
Embed the helper script in the podspec so CocoaPods executes it from the downloaded Hermes source root without serializing the checkout path. This preserves the quoted-script behavior from upstream react#45316 while making local podspec checksums portable.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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. Merged This PR has been merged. p: Callstack Partner: Callstack Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants