mac上cocoapods安装与卸载
程序员文章站
2023-11-20 12:55:34
安装 卸载 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