Reply to While executing gem ... (Gem::FilePermissionError) curl -L https://get.rvm.io | bash -s stable rvm install ruby-3.1.1 sudo gem install cocoapods with kewan's answer above worked for me also thanks App & System Services Core OS May ’22