升级10.13.1以后Pod命令失效,解决办法如下:
终端执行
brew link --overwrite cocoapods
尝试 Pod 命令是否已经恢复
若报错继续执行
brew reinstall cocoapods
brew install ruby
brew link --overwrite cocoapods
brew link --overwrite cocoapods
brew reinstall cocoapods
brew install ruby
brew link --overwrite cocoapods