-
看看cocoapod版本号
$pod --version Ignoring ffi-1.9.23 because its extensions are not built. Try: gem pristine ffi --version 1.9.23 1.6.1
-
1.6.1是我的版本号,改成你目前的,卸载老版本
$sudo gem uninstall cocoapods -v 1.6.1 Password:需要输入密码 Successfully uninstalled cocoapods-1.6.1 $sudo gem uninstall cocoapods-core -v 1.6.1 Successfully uninstalled cocoapods-core-1.6.1
-
安装1.6.0版本
$sudo gem install cocoapods -v 1.6.0
-
如果报错
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /usr/bin directory.
-
使用如下
$sudo gem install cocoapods -v 1.6.0 -n /usr/local/bin Fetching: cocoapods-core-1.6.0.gem (100%) Successfully installed cocoapods-core-1.6.0 Fetching: cocoapods-1.6.0.gem (100%) Successfully installed cocoapods-1.6.0 Parsing documentation for cocoapods-core-1.6.0 Installing ri documentation for cocoapods-core-1.6.0 Parsing documentation for cocoapods-1.6.0 Installing ri documentation for cocoapods-1.6.0 Done installing documentation for cocoapods-core, cocoapods after 6 seconds 2 gems installed
-
卸载全部cocoapods
sudo gem uninstall cocoapods
-
安装
sudo gem install -n /usr/local/bin cocoapods -v 1.6.0
cocoapods更新某个版本
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- 1.移除现有的Ruby $gem sources --remove https://rubygems.org/ 2...
- 1.在升级到Xcode8之后Cocoapods管理第三方库的时候,不报错,但是却没安装成功,这个时候你就要查看当前...