[mac 升级10.15 macOS Catalina引起cocoapods使用失败]

报错信息如下

zsh: /usr/local/bin/pod: bad interpreter: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: no such file or directory

尝试升级cocoapods解决,升级步骤如下

更新gem
sudo gem update --system

升级cocoapods
sudo gem install -n /usr/local/bin cocoapods --pre

更新仓库
pod repo update

问题解决

你可能感兴趣的:([mac 升级10.15 macOS Catalina引起cocoapods使用失败])