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

Use bundle install before pod install when bundle is used #624

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

kmagiera
Copy link
Member

@kmagiera kmagiera commented Oct 15, 2024

In #617 we added an option for the IDE to use bundle command instead of pods directly as it is now recommended in new react native templates and setups. However, for bundle to work properly, we need to bundle install first. This was missed in that PR as I was testing a project where bundle install has already run.

This PR changes the pod installation command to: bundle install && bundle exec pod install as recommended by react native docs. For this to work we pass shell option to the command which allows for joining the commands.

How Has This Been Tested:

  1. Delete rn 75 project and checkout a fresh copy
  2. Open the fresh RN 75 project with the IDE

Copy link

vercel bot commented Oct 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
radon-ide ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 7:22am

{
shell: shouldUseBundle, // when using bundle, we need shell to run multiple commands
cwd: iosDirPath,
env: { ...env, LANG: "en_US.UTF-8" },
Copy link
Member

Choose a reason for hiding this comment

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

Would be nice to add LANG automatically.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think we actually want to add it in all scenarios. I think we analyze the printed output here and so we add it such that we don't get the error messages translated.

@kmagiera kmagiera merged commit 65cf1e9 into main Oct 15, 2024
3 checks passed
@kmagiera kmagiera deleted the kmagiera/fix-bundle-install branch October 15, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants