I was getting the error:

[error] /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe’: can’t find gem cocoapods (>= 0.a) with executable pod (Gem::GemNotFoundException)

To fix this install cocoapods for the user:


First create a .bash_profile if it does not exist:



Then remove cocoapods installation:

sudo gem uninstall cocoapods

Then install cocoapods as the user running the gitlab-runner:

Follow the “Sudo-less ” installation guide on:





Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.