专栏首页大宇笔记Cocospod 升级到指定版本

Cocospod 升级到指定版本

1.检查当前安装版本列表

gem list --local | grep cocoapods
NvrdeiMac:ValidateSwift nvr$ gem list --local | grep cocoapods
cocoapods (1.6.0.beta.1, 1.5.3)
cocoapods-core (1.6.0.beta.1, 1.5.3)
cocoapods-deintegrate (1.0.2)
cocoapods-downloader (1.2.1)
cocoapods-plugins (1.0.0)
cocoapods-search (1.0.0)
cocoapods-stats (1.0.0)
cocoapods-trunk (1.3.1, 1.3.0)
cocoapods-try (1.1.0)

2.卸载不用版本

当前命令要卸载1.5.3

sudo gem uninstall cocoapods   1.5.3
NvrdeiMac:ValidateSwift nvr$ sudo gem uninstall cocoapods 1.5.3
Gem '1.5.3' is not installed

Select gem to uninstall:
 1. cocoapods-1.5.3
 2. cocoapods-1.6.0.beta.1
 3. All versions
> 1. cocoapods-1.5.3
Successfully uninstalled cocoapods-1.5.3

3.安装指定版本

当前命令要安装1.6.1

sudo gem install cocoapods -v 1.6.1

如果遇到ruby源错误:

ERROR:  Could not find a valid gem 'cocoapods' (= 1.6.1), here is why:
          Unable to download data from https://gems.ruby-china.org/ - bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz)

解决传送门

然后就成功了:

NvrdeiMac:ValidateSwift nvr$ sudo gem install cocoapods -v 1.6.1
Password:
Fetching: ruby-macho-1.4.0.gem (100%)
Successfully installed ruby-macho-1.4.0
Fetching: fourflusher-2.2.0.gem (100%)
Successfully installed fourflusher-2.2.0
Fetching: xcodeproj-1.8.2.gem (100%)
Successfully installed xcodeproj-1.8.2
Fetching: cocoapods-downloader-1.2.2.gem (100%)
Successfully installed cocoapods-downloader-1.2.2
Fetching: cocoapods-core-1.6.1.gem (100%)
Successfully installed cocoapods-core-1.6.1
Fetching: cocoapods-1.6.1.gem (100%)
Successfully installed cocoapods-1.6.1
Parsing documentation for ruby-macho-1.4.0
Installing ri documentation for ruby-macho-1.4.0
Parsing documentation for fourflusher-2.2.0
Installing ri documentation for fourflusher-2.2.0
Parsing documentation for xcodeproj-1.8.2
Installing ri documentation for xcodeproj-1.8.2
Parsing documentation for cocoapods-downloader-1.2.2
Installing ri documentation for cocoapods-downloader-1.2.2
Parsing documentation for cocoapods-core-1.6.1
Installing ri documentation for cocoapods-core-1.6.1
Parsing documentation for cocoapods-1.6.1
Installing ri documentation for cocoapods-1.6.1
Done installing documentation for ruby-macho, fourflusher, xcodeproj, cocoapods-downloader, cocoapods-core, cocoapods after 7 seconds
6 gems installed
NvrdeiMac:ValidateSwift nvr$ pod --version
Ignoring eventmachine-1.2.7 because its extensions are not built. Try: gem pristine eventmachine --version 1.2.7
Ignoring ffi-1.9.25 because its extensions are not built. Try: gem pristine ffi --version 1.9.25
Ignoring http_parser.rb-0.6.0 because its extensions are not built. Try: gem pristine http_parser.rb --version 0.6.0
1.6.1

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • Swift4.0 KVC 字典赋值模型改变

    我们都知道KVC 是OC  NSobject特有的,之前在Swift4.0之前,继承NSobject的对象,可用动态的拿到字典调用KVC给模型赋值。只是比较省...

    ZY_FlyWay
  • React Native自定义Button

    ZY_FlyWay
  • swift 定位封装一句话使用

    git地址:https://github.com/RainManGO/LocationManager

    ZY_FlyWay
  • [!]The 'pods-xxx' target has libraries with conflicting name: libcrypto.a and libssl.a

    VV木公子
  • 01 The Learning Problem

    也就是要依次回答:何时可以用机器学习?为何可以机器学习?怎样机器学习?怎样更好地机器学习?构建一幅大Picture!

    用户2183996
  • 分享一例脚本发版和tomcat重启脚本

    线上有个网站业务部署在tomcat上,由于频繁上线修改,需要经常启动tomcat。 tomcat服务自带的bin下没有重启脚本,下面分享一例脚本发版和tomca...

    洗尽了浮华
  • Z-Blog PHP百度熊掌号搜索结果出图页面改造

    熊掌号为优质图文内容生产者提供结搜索结果出图权益,帮助站点获取更好的搜索结果展现样式,为搜索用户提供更好的浏览体验。

    德顺
  • TensorFlow 2.0「开发者预览版」上线,内容每日更新

    不过,即使是在 TensorFlow 2.0 中,目前也没有对于 Python 3.7 的支持。

    机器之心
  • 第六届蓝桥杯决赛B组C/C++——积分之谜

    mathor
  • 当Kotlin遇见数据结构丨哈夫曼编码

    哈夫曼编码是一种编码格式,属于可变字长编码的一种,该方法依照字符出现的概率来构建异字头的平均长度最短的码字,最终实现根据使用频率来最大化节省码字(字符)的存储空...

    码脑

扫码关注云+社区

领取腾讯云代金券