Last active
September 19, 2019 08:56
-
-
Save qy1010/94442f1b50619469e2b214ec443132ca to your computer and use it in GitHub Desktop.
安装coocapods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 指安装最新 指定安装源 | |
$ sudo gem install cocoapods --source http://rubygems.org | |
// 指定版本安装 指定安装源 | |
$ sudo gem install cocoapods --source http://rubygems.org -v 1.5.3 | |
查看pod版本 | |
pod --version | |
查看有哪个pod | |
gem list pod | |
安装pod需要用到gem,先看一下自己的gem源 | |
gem sources -l | |
添加source | |
gem source -a https://gems.ruby-china.com | |
更新 | |
sudo gem install cocoapods | |
指定版本更新 | |
sudo gem install cocoapods -v 1.1.1 | |
想尝试预览 | |
sudo gem install cocoapods --pre | |
卸载 | |
sudo gem uninstall cocoapods <#版本号#> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment