最近苹果推出了OS High Sierra, 花了一晚上的时间更新好, 早上来更新pod库却遇到了问题:
-bash:
/usr/local/bin/pod:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad
interpreter: No such file or directory
解决的方法如下:
1.安装Homebrew:
ruby -e"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.安装Ruby后重新安装CocoaPods:
brew install ruby
sudo gem install cocoapods
安装完再pod就👌了