mac10.13 pods 命令错误
每逢升级大版本总要过搞点事情。
| 1 | $ pod env | 
不论是pod env、pod update 等等均报上面的错误。
如果Google发现:
- ruby - CocoaPods not working in macOS High Sierra - Stack Overflow
- CocoaPods CLI fails in High Sierra due to change of Ruby version #6778
- High Sierra: bad interpreter #6898
事情的缘由就是这样。
#6898中道出了简单直接的解决方案:
for all others:
gem install -n /usr/local/bin cocoapods
fixes it
综合起来解决这个问题是这样的:
| 1 | $ gem update --system | 
愉快的使用cocoapods吧~