升级Mac OS后,用Cocoa pod报错
类似如下:
pod --version
***: /usr/local/bin/pod: bad interpreter: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin: no such file or directory
解决:
1.查看源:
gem source -l
2.更新pod
//然后mac输入密码
sudo gem update --system
//会弹出进度
sudo gem install cocoapods -n/usr/local/bin