Jekins iOS fastlane build: Could not find 'bundler' Jekins iOS fastlane build: Could not find 'bundler' jenkins jenkins

Jekins iOS fastlane build: Could not find 'bundler'


Try to set your source to rvm, I have a setup like this:

export GEM_HOME=\$HOME/.rvm/gems/ruby-2.5.0export GEM_PATH=\$HOME/.rvm/gems/ruby-2.5.0:\$HOME/.rvm/gems/ruby-2.5.0@globalLANG=en_US.UTF-8source "\$HOME/.rvm/scripts/rvm"bundle update && bundle installbundle exec fastlane $cmd

It looks like your are using the wrong ruby version in the Jenkins JVM:

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0...

you may need to set the right version with rvm use 2.5.0 before calling bundle ...

The main problem with Jenkins is, that it is running in a different environment then your terminal (your Mac in general) because of the JVM it's working in.Duo to this setup, you need to call your setup like mine always before you make a call to your Bundler (or any ruby gem).