Gem::InstallError: activesupport requires Ruby version >= 2.2.2.
An error occurred while installing activesupport (5.0.0), and Bundler cannot
continue.
Make sure that `gem install activesupport -v '5.0.0'` succeeds before bundling.
The default version of Ruby on OS X is a bit too old, and it looks like a recent update to this gem is causing issues.
The best thing to do would be to downgrade to the previous version of this gem while we work on updating Ruby (or at least allowing people to chose a different version of Ruby) on the OS X build machines.
We are aware of this issue and we are working to find a more permanent solution. The default ruby version on the image is dated. It looks like this specific gem requires a newer version of ruby. In the mean time, can you please trying adding the following to your circle.yml file:
cd "Example"
bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs 4 --retry 3
bash: /usr/local/lib/ruby/gems/2.0.0/bin/bundle: /usr/local/opt/ruby20/bin/ruby: bad interpreter: No such file or directory
bash: /usr/local/lib/ruby/gems/2.0.0/bin/bundle: /usr/local/opt/ruby20/bin/ruby: bad interpreter: No such file or directory
cd "Example"
bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs 4 --retry 3
returned exit code 126
Action failed: Run bundler
The change to my circle.yml file fixed my issue with seeing the error message that betzerra originally reports, but now CocoaPods sometimes takes too long to install (>10mins) and CircleCI aborts!