升级了10.15,执行pod发现报错
-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory
只需要执行以下指令即可
sudo gem install -n /usr/local/bin cocoapods
一定要加-n /usr/local/bin
否则会报以下错误
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.