Example case:

  • gem install (.circleci/config.yml)

Example errors:

  • ruby writing permission exhibited
Screen Shot 2019-12-10 at 11.01.43 AMScreen Shot 2019-12-10 at 11.02.07 AM
  • invalid ruby version
Screen Shot 2019-12-10 at 11.00.02 AM.png

Solution:

Customize ruby version in .circleci/config.yml:

Screen Shot 2019-12-10 at 11.05.25 AM.png

Reference:

CircleCI 2.0 > Testing iOS Applications on macOS > Using Custom Ruby Versions. https://circleci.com/docs/2.0/testing-ios/#using-custom-ruby-versions