升級系統(tǒng)之后發(fā)現(xiàn)原來的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
方法是安裝更高版本的源。
1.you need to read all the texts that are displayed when you install RVM唬血,remove the old rvm first
rm -rf ~/.rvm
curl -L https://get.rvm.io | bash -s stable
See:https://stackoverflow.com/questions/11677771/rvm-command-not-found-mac-ox
如果沒刪除原有的源率碾,在接下來的步驟當(dāng)你執(zhí)行 rvm 操作時會提示如下錯誤:
2.you need to close the terminal ,then open again!
3.安裝新版ruby
command rvm install 2.3.0
4.使用下載好的ruby作為默認ruby源
rvm use 2.3.0 --default
5.安裝cocoapods
sudo gem install -n /usr/local/bin cocoapods
接下來就可以執(zhí)行常見的pod操作命令了童叠。
cd 到指定目錄 安裝pod
pod install
See:http://blog.csdn.net/sharktoping/article/details/52311460
https://stackoverflow.com/questions/11677771/rvm-command-not-found-mac-ox