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
相關文章
- Mac 升級 PHP 到 7.4 版本MacPHP
- 如何將 Ubuntu 版本升級到新版本Ubuntu
- 【MSSQL】MSSQL 從Express版本升級到Enterprise版本SQLExpress
- PHP版本升級:從php7.1升級到php7.2PHP
- Centos7 升級openssh到最高版本CentOS
- 應用升級SpringCloud版本時的注意事項(Dalston升級到Edgware)SpringGCCloud
- 從CentOS 7.0升級到7.7版本CentOS
- MacOs 升級 Git 到最新版本MacGit
- npm node升級到最新版本NPM
- NiFi版本升級Nifi
- gcc版本升級GC
- node 版本升級
- python版本升級Python
- 寶塔皮膚版本升級實戰教程—升級寶塔皮膚到最新版本
- ubuntu18.4 升級Python到3.8版本UbuntuPython
- openGauss-指定節點升級
- centos7 openssl升級版本到OpenSSL 1.1.1nCentOS
- Homestead 升級PHP版本PHP
- GitLab跨版本升級Gitlab
- win7如何升級到win10系統版本 win7免費升級到win10Win7Win10
- 如何升級電腦windows版本 windows系統版本升級方法介紹Windows
- Win10怎麼升級版本 Win10升級版本的方法Win10
- Node 快速切換版本、版本回退(降級)、版本更新(升級)
- nginx 版本升級 轉載Nginx
- Mac brew 升級 PHP版本MacPHP
- Redis的跨版本升級Redis
- 升級mac的PHP版本MacPHP
- YourSQLDba版本升級總結SQL
- 如何升級fedora的版本
- ThinkPHP升級至 5.1.18 版本PHP
- oracle 10 rac 升級 10.2.0.1升級到10.2.0.5Oracle
- gitlab遷移到docker並升級大版本到10.1.1和漢化GitlabDocker
- CentOS 6下gcc升級的操作記錄(由預設的4.4.7升級到6.4.0版本)CentOSGC
- git遠端分支回滾到指定版本Git
- ccproject升級到1135Project
- 12. Oracle版本、補丁及升級——12.3. 升級Oracle
- mongodb單機從3.2升級到4.0.4升級MongoDB
- nginx升級與版本回退Nginx