卸载CocoaPods
查看是否安装:pod list
如果已安装:
*** LOCAL GEMS ***
activesupport (4.2.9)
bigdecimal (default: 1.2.0)
CFPropertyList (2.3.5, 2.2.8)
claide (1.0.2)
cocoa (0.1.6)
cocoapods (1.3.1)
cocoapods-core (1.4.0.beta.1, 1.3.1)
cocoapods-deintegrate (1.0.1)
cocoapods-downloader (1.1.3)
cocoapods-plugins (1.0.0)
cocoapods-search (1.0.0)
cocoapods-stats (1.0.0)
cocoapods-trunk (1.2.0)
cocoapods-try (1.1.0)
colored2 (3.1.2)
escape (0.0.4)
ffi (1.9.18)
nanaimo (0.2.3)
...
如果未安装:
zsh: command not found: pod
删除CocoaPods相关的包
一次性全部移除:sudo gem uninstal cocoapods
会提示:
Remove executables:
pod, sandbox-pod
in addition to the gem? [Yn] y
我选择了y,回车。
然后再pod list看一下,zsh: command not found: pod,说明卸载成功了。
~/资源库/Caches/CocoaPods
卸载后有一些缓存并不会清理,可以进入~/资源库/Caches/CocoaPods目录手动清理。