安裝 卸載 1. ,卸載pod命令。 2. ,查看所有安裝的cocoapods組件,依次刪除, 或者執行以下腳本 Xcode工程里的cocoapods卸載與重裝 ...
安裝
# 安裝最新beta版
sudo gem install cocoapods --pre -n /usr/local/bin
# 安裝最新穩定版
sudo gem install cocoapods -n /usr/local/bin
卸載
sudo rm -rf /usr/local/bin/pod
,卸載pod命令。gem list
,查看所有安裝的cocoapods組件,依次刪除,sudo gem uninstall cocoapods-XXX
或者執行以下腳本
sudo rm -rf /usr/local/bin/pod ; gem list | grep cocoapods | awk '{print $1}' | while read line; do sudo gem uninstall $line; done
Xcode工程里的cocoapods卸載與重裝
rm -rf Pods Podfile.lock *.xcworkspace && pod install && open *.xcworkspace