因为升级了新的系统之后系统目录发生了改变,只需要重新升级或者安装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
sudo gem uninstall cocoapods
- 安装cocoapods
sudo gem install -n /usr/local/bin cocoapods --version 1.5.3
网友评论