bitrise-steplib / steps-cocoapods-install

MIT License
23 stars 18 forks source link

Can't install Cocoapods on build env #41

Closed AnoxySoftware closed 3 years ago

AnoxySoftware commented 5 years ago
System installed cocoapods version:
$ pod "--version"
rbenv: version `2.4.1' is not installed (set by /Users/vagrant/git/.ruby-version)
Command failed, error: exit status 1

This is the error we are getting after updating our Workflow Editor Stack to Xcode 10.2.x on Mojave

fehersanyi-bitrise commented 5 years ago

Hello @AnoxySoftware could you please send us this build's url so we could check out the full logs for some more details, and try to come up with a possible solution? 🙃

AnoxySoftware commented 5 years ago

@fehersanyi-bitrise https://app.bitrise.io/build/2487075c023cbe75

Thank you

AnoxySoftware commented 5 years ago

@fehersanyi-bitrise any Update on this?

fehersanyi-bitrise commented 5 years ago

Hello there, sorry, yes so the installed rbenv is 1.1.2 and you need 2.4.1. you can install it from a script step like rbenv install 2.4.1

AnoxySoftware commented 5 years ago

Thx @fehersanyi-bitrise The issue though seemed to be we had a .ruby-version in our project that was setting it to 2.4.1 Removed it now from project and it seems to compile again

fehersanyi-bitrise commented 5 years ago

Hey @AnoxySoftware sounds good 🙃 I'm glad you could solve it!

markotl88 commented 5 years ago

Hello, @fehersanyi-bitrise. I'm having the same problem after updating the stack to Xcode 10.2 on Mojave. I added rbenv install 2.4.1 to the script step, after that it was looking for ruby 2.5.1. I've changed the script again - then it was looking for version 2.5.3. After installing 2.5.3. it now looks for 2.5.1. It seems that I'm being caught in vicious circle here.

Here's the app link: https://app.bitrise.io/app/0194b82c91803ad7# (Bitrise support is on).

@AnoxySoftware Can you please tell me how did you manage to remove the ruby version setting from project? I checked Gemfile/Gemfile.lock, it seems that there's no explicit ruby version setting.

AnoxySoftware commented 5 years ago

@markotl88 I just removed the .ruby-version file from our project. This is a hidden file. So search your project for this file (make sure your Finder is set to show Hidden files) and then delete it.

markotl88 commented 5 years ago

Thanks @AnoxySoftware! Removing .ruby-version file from project resolved my problem too.

github-actions[bot] commented 3 years ago

Hello there, I'm a bot. On behalf of the community I thank you for opening this issue.

To help our human contributors focus on the most relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 90 days, so I marked it as stale.

The community would appreciate if you could check if the issue still persists. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me".

If no comment left within 21 days, this issue will be closed.

github-actions[bot] commented 3 years ago

I'll close this issue as it doesn't seem to be relevant anymore. We believe an old issue probably has a bunch of context that's no longer relevant, therefore, if the problem still persists, please open a new issue.