昨天更新了macOS High Sierra 系统cocoapods使用不了,提示
zsh: /usr/local/bin/pod: bad interpreter: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin: no such file or directory
解决方案:
rm -rf /usr/local/bin/pod
卸载pod,再使用brew重新链接
brew link cocoapods
如果失败加上 --overwrite参数即可
brew link --overwrite cocoapods