Clone from: https://stackoverflow.com/a/66556339
- Install your own version of Ruby with Homebrew / rbenv / RVM (e.g.
brew install ruby
) - Add it and the gems binaries to your
PATH
and make sure the new version is used withwhich ruby
(should be/opt/homebrew/opt/ruby/bin/ruby
instead of/usr/bin/ruby
if installed with Homebrew) - Install CocoaPods with
sudo gem install cocoapods
(make sureethon
is at least version 0.13.0) - Run
pod install