Skip to content

Use of pod and bundle exec pod #2663

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

Open
jankosecki opened this issue May 19, 2025 · 0 comments
Open

Use of pod and bundle exec pod #2663

jankosecki opened this issue May 19, 2025 · 0 comments
Labels
question Further information is requested

Comments

@jankosecki
Copy link

I've noticed that as part of recent update to CLI, run-ios builds CocoaPods dependencies.

There seems to be a bit of inconsistency because in installPods CLI checks if pod command is available (https://github.com/react-native-community/cli/blob/a856ce027a6b25f9363a8689311cdd4416c0fc89/packages/cli-config-apple/src/tools/installPods.ts#L154C7-L154C18) and shortly after in runPodInstall it uses bundle exec pod install instead.

I can see that some other parts of CLI use pod CLI directly (await execa('pod', ['cache', 'clean', '--all'], and await execa('pod', ['repo', 'update']);) but wouldn't it make more sense to always call pod through bundle exec?

Up until today I didn't need global pod CLI installed on my machine as I was always uses bundle instead

@jankosecki jankosecki added the question Further information is requested label May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant