recently tried to do pod setup and i get this:
pod setup
-bash: /usr/local/bin/pod: /usr/local/opt/ruby/bin/ruby: bad interpreter: No such file or directo
Same issue I was facing when I updated our system from Sierra to Mojave. Also works for Catalina
Sierra
Mojave.
The following steps worked:
sudo gem update --system sudo gem install -n /usr/local/bin cocoapods
I got the help from the following link.