-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Error: /bin/sh: pod: command not found #93
Comments
You don't specify your platform. Are you not on macOS? If you are a react-native developer and you are on iOS, then pod is required to be in your PATH. If you are not on macOS (just developing on windows or linux perhaps) then perhaps react-native-clean-project shouldn't try it. How did it go when you edit the code in this module to check platform first, and avoid pod / brew commands if you aren't on macOS? |
I suppose it because i installed the
I guess it is problem
Fix temporary for me
|
Which OS are you using? |
For what it's worth, I see this when running on windows and Ubuntu, both valid for development if doing android-only app or temporarily on those platforms and just doing pure JS work and validating on android. Both of those are use cases for me from time to time But that is issue #92 (and I need to propose the related PR...) This is something maybe related to recent changes in react-native where there is a .ruby-version file, a Gemfile/Gemfile.lock and a bundle directory. It's possible now to run cocoapods via bundle I suppose ? I haven't ever done this myself So the more interesting question for @whhotw might be: how do you do your react-native project checkout/installation and how do you normally install pods etc? |
macOS 11.6 |
Basically, I don't want to install |
Your method is valid but you are in the minority, I think. In that way though, |
@mikehardy just FYI, using Bundler, the Ruby package manager, and something like Just in case that you don't know of it, Bundler is to Ruby what Node Package Manager and Yarn are to JavaScript - a way to pin Ruby and Ruby Gems by version in any Ruby project. As As an example, here's the source "https://rubygems.org"
ruby "3.1.0"
gem "cocoapods", "1.11.3"
gem "fastlane", "2.205.1" As you can see, it works much how Given you are using As for being in the minority for using Bundler - definitely, if we look at the gamut of everyone who might be making a React Native project, however it is good practice to use something like Bundler when trying to keep the dev environment the same across many machines that developers could be working on, for the same project. You may consider just creating a The trouble with Bundler, compared to Note that @whhotw didn't actually propose any PR as you say, he merely shared his "Fix temporary for me". May be handy to do this with something like patch-package locally but it definitely isn't a fix that is going to stick. It could be accommodated, however, by creating a new task list in Think it's time I forked this project.... |
Hopefully with PRs back to this repo though, I've been recommending it for a couple years now and it's really handy to have one canonical place to send people. I understand everything you mentioned, I just want to say that my use case is that I clone the raw react-native template all the time as a react-native release tester, and I use current ruby via rvm. I make sure |
Yep, 100% agree - the default position should be a bare-bones project, that's why I was thinking to myself "hmm, I just want it to be able to capture the option of using Bundler 🤔". And yep, fork and a PR back to this repo, just want to make sure I am not actually writing garbage first 😅! |
I think that's a good idea! |
As title.
The text was updated successfully, but these errors were encountered: