bitrise-steplib / steps-cocoapods-install

MIT License
23 stars 18 forks source link

CocoaPods-Install tries to install ruby via rbenv even if using suggested asdf #98

Closed broksonic21 closed 1 year ago

broksonic21 commented 1 year ago

Troubleshooting

Issue description

See https://github.com/bitrise-io/go-steputils/blob/v1.0.5/command/rubycommand/rubycommand.go#L69-L77

which prefers rbenv over asdf

However, https://discuss.bitrise.io/t/xcode-14-3-x-edge-stack-update-2023-06/22945 suggests using asdf over Rbenv

but if you do, the RubyCommand still finds rbenv and thinks it needs to use it. This causes steps, like cocoa pods-install (see https://github.com/bitrise-steplib/steps-cocoapods-install/blob/75dd45d47a09aecdec2f90738ebb78afc677a8dd/main.go#L368 ) to try and install Ruby again even if it's there from asdf

Also filed vs RubyCommand here: https://github.com/bitrise-io/go-steputils/issues/83

lpusok commented 1 year ago

Released https://github.com/bitrise-steplib/steps-cocoapods-install/releases/tag/2.4.0 with a fix. There are a few Steps to be fixed (fastlane) still.