Reply to While executing gem ... (Gem::FilePermissionError) Open Terminal curl -L https://get.rvm.io | bash -s stable Reopen Terminal rvm install ruby-3.1.1 rvm use ruby-3.1.1 rvm --default use 3.1.1 Then this installed cocoapods as expected sudo gem install cocoapods App & System Services Core OS Mar ’22