CocoaPods 重装

Posted 茉莲晨曦

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CocoaPods 重装相关的知识,希望对你有一定的参考价值。

卸载

命令行:
sudo gem uninstall cocoapods

查看Cocoapods其余相关的组件

gem list --local | grep cocoapods

我这儿的显示:

cocoapods-core (1.11.3)
cocoapods-deintegrate (1.0.5)
cocoapods-downloader (1.6.3)
cocoapods-plugins (1.0.0)
cocoapods-search (1.0.1)
cocoapods-trunk (1.6.0)
cocoapods-try (1.2.0)

上面的各组件删除的话,需使用如下命令逐个删除:

sudo gem uninstall cocoapods-core
sudo gem uninstall cocoapods-deintegrate
sudo gem uninstall cocoapods-downloader
sudo gem uninstall cocoapods-plugins
sudo gem uninstall cocoapods-search
sudo gem uninstall cocoapods-trunk
sudo gem uninstall cocoapods-try

重新安装

sudo gem install -n /usr/local/bin cocoapods

以上是关于CocoaPods 重装的主要内容,如果未能解决你的问题,请参考以下文章

CocoaPods 重装

解决了Cocoapods Undefined symbols for architecture _OBJC_CLASS_xxxx的问题,辛苦死我了,记录下之后有空在研究

cocoapods-Cocoapods上的库怎么更新

cocoapods 不能用了 怎么办

求助大神,cocoapods出现这个问题怎么解决

#面试#cocoapods 原理