解决MAC系统升级导致COCOAPODS失效问题
使用pod install出现如下错误
-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory
这是Mac升级系统导致,当你的Mac系统升级为 high siera的时候,别忘记更新cocoapods。
执行命令:
$ sudo gem update --system
$ sudo gem install cocoapods -n/usr/local/bin
![](https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1550046869549&di=1aa101a28a6f956ce63931a66bb2ecb4&imgtype=0&src=http%3A%2F%2Fwx3.sinaimg.cn%2Forj360%2F90f58663gy1fg6xj7eo85j20yg0yg4be.jpg)