Fastlane uses a different ruby version than


Description of the feature request

Im trying to build an iOS project with fastlane but Im getting an issue with:

Warning: CocoaPods is installed but broken. Skipping pod install.
  You appear to have CocoaPods installed but it is not working.
  This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used to invoke it.
  This can usually be fixed by re-installing CocoaPods. For more info, see
To re-install:
  sudo gem install cocoapods

Exception: CocoaPods not installed or not in valid state.

After investigating the fastlane task does not allow you to override the ruby version that it uses.

Fastlane ruby path:

Im using this base image:
Xcode 11.7.x, on macOS 10.15.6 (Catalina)

Which have a different ruby version for cocoapods:

Use case / for what or how I would use it

Some ideas:

  • Add a variable in the task that let you set the ruby version that it will use.
  • Allow the images to be configurable to have a ruby version we want.

I still dont know how to fix this and make my build run fine.

It looks like the same issue here: Cocoapod install not using the correct version



Hi @danielgomezrico!

Sorry to hear about the issue. Can you please include a build URL here? That would allow us to check out the complete log output of the build :slight_smile:


closed #3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.