【突发问题】昨天更新了OS X EI Capitan 出现了Cocoapods的 pod :command not found

然后我百度:http://www.jianshu.com/p/6ff1903c3f11

果真,我想想然后执行了作者说的第一步,删除本地Cocoapods文件,然后发现我执行不了接下来的几个步骤了。所以我就执行平时执行安装pod的命令

出现了错误:

localhost:~ LV$ sudo gem install cocoapods
ERROR:  Could not find a valid gem ), here is why:
          Unable to download data from http://ruby.taobao.org/ - bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)

镜像的http://ruby.taobao.org/明显错误了,因为http

然后我:

localhost:~ LV$ gem sources -l
*** CURRENT SOURCES ***

http://ruby.taobao.org/

所以我要删除她,更新成https://ruby.taobao.org/

所以我:

localhost:~ LV$ gem sources -a https://ruby.taobao.org/
https://ruby.taobao.org/ added to sources
localhost:~ LV$ gem sources -l
*** CURRENT SOURCES ***

http://ruby.taobao.org/
https://ruby.taobao.org/

之后我删除http,但是会报错,我尝试了三次都是这样:

localhost:~ LV$ gem sources -remove http://ruby.taobao.org/
source emove not present in cache

但是第四次:

localhost:~ LV$ gem sources --remove http://ruby.taobao.org/
http://ruby.taobao.org/ removed from sources

最好:我开始下载最新的Cocoapods

localhost:~ LV$ sudo gem install -n /usr/local/bin cocoapods
Password:
Successfully installed cocoapods-
Parsing documentation
 gem installed

【测试】

localhost:around_iOS副本 LV$ pod install
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Using SVProgressHUD ()
Using ZLSwipeableView ()
Using pop ()
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are  dependencies from the Podfile and  total
pods installed.

ok了

上一篇:PHP中遍历XML之SimpleXML


下一篇:Phaser开源2d引擎 html5游戏框架中文简介