maxim-lobanov / setup-cocoapods

Set up your GitHub Actions workflow with a specific version of Cocoapods
MIT License
31 stars 6 forks source link

Permission error on Linux #21

Open zeshuaro opened 3 years ago

zeshuaro commented 3 years ago

I'm getting the following permission error when running on ubuntu-latest:

Podfile points to the Cocoapods 1.10.1
/usr/bin/gem uninstall cocoapods --all --executables
/usr/bin/gem install cocoapods -v 1.10.1 --no-document
Gem 'cocoapods' is not installed
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /var/lib/gems/2.7.0 directory.

PS I tried the same config onmacos-latest and it's working fine.

codymurphyjones commented 2 years ago

I am also getting this same exact issue. It seems that linux does not have access to download the ruby gems for some reason.

codymurphyjones commented 2 years ago

I just managed to skirt around this issue just using this

- name: Install cocoapods run: | sudo gem install cocoapods sudo gem install -n /usr/local/bin cocoapods