mac上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

转载于:https://www.cnblogs.com/parallel-world/p/10560622.html

你可能感兴趣的:(mac上cocoapods安装与卸载)