一. 移除pod组件,查看pod的安装位置
$ which pod
手动删除这个组件 :
$ sudo rm -rf <path>
二. 移除 RubyGems 中的 Cocoapods程序包
1、查看gems中本地程序包
$ gem list
2、结果如下:
activesupport (4.1.8, 3.2.21) bigdecimal (1.2.0) CFPropertyList (2.2.8) claide (0.7.0) cocoapods (0.35.0, 0.34.1, 0.34.0) cocoapods-core (0.35.0, 0.34.1, 0.34.0) cocoapods-downloader (0.8.0, 0.7.2) cocoapods-plugins (0.3.2) cocoapods-trunk (0.4.1, 0.2.0) cocoapods-try (0.4.2) colored (1.2) escape (0.0.4) fuzzy_match (2.0.4) i18n (0.6.11) io-console (0.4.2) json (1.7.7) json_pure (1.8.1) libxml-ruby (2.6.0) minitest (5.4.3, 4.3.2) molinillo (0.1.2) multi_json (1.10.1) nap (0.8.0) netrc (0.7.8) nokogiri (1.5.6) open4 (1.3.4) psych (2.0.0) rake (0.9.6) rdoc (4.0.0) sqlite3 (1.3.7) test-unit (2.0.0.0) thread_safe (0.3.4) tzinfo (1.2.2) xcodeproj (0.20.2, 0.19.4)
coapods的程序包
cocoapods (0.35.0, 0.34.1, 0.34.0) cocoapods-core (0.35.0, 0.34.1, 0.34.0) cocoapods-downloader (0.8.0, 0.7.2) cocoapods-plugins (0.3.2) cocoapods-trunk (0.4.1, 0.2.0) cocoapods-try (0.4.2)
4、对我们有用的cocoapods和cocoapods-core 移除程序包
$ sudo gem uninstall cocoapods -v 0.35.0
5、输出如下则成功
Successfully uninstalled cocoapods-0.35.0
输出
Successfully uninstalled cocoapods-core-0.35.0
6、然后安装指定版本的Cocoapods
$ sudo gem install cocoapods -v 0.34.4
安装成功后
$ pod --version
输出,则安装成功
0.34.1
执行完成上面,我们又回到了低版本0.34.1,搜了很多,发现关于Pod的详细资料不多,把自己的根据别人文章实践的过程分享一下。期望能够帮到大家。
网友评论