pod

 393  sudo gem uninstall cocoapods
  394  sudo gem uninstall xcodeproj
  395  sudo gem install xcodeproj
  396  sudo gem install cocoapods
  397  gem update --system

gem sources -l

 352  gem sources -l

  353  gem sources --remove https://rubygems.org/

  354  gem sources -l

  355  gem sources -a https://ruby.taobao.org/

  356  gem sources -u 

  357  gem sources -l

  358  sudo gem install xcodeproj

  359  sudo gem install cocoapods

 

tempdeMacBook-Pro:~ temp$ cd ~/.cocoapods/repos/

tempdeMacBook-Pro:repos temp$ git clone https://github.com/CocoaPods/Specs.git master

 

出现Setting up CocoaPods master repo,半天没有任何反应。原因无他,因为那堵墙阻挡了cocoapods.org。。。
gitcafe和oschina都是国内的服务器,可以用它们CocoaPods索引库的镜像:
$ pod repo remove master
$ pod repo add master https://gitcafe.com/akuandev/Specs.git
$ pod repo update
如果想用oschina的镜像也可以把第二条命令 换成 http://git.oschina.net/akuandev/Specs.git 即可

第二条命令执行的时候会比较耗时,这个时候要去把整个specs仓库clone一下,下载到 ~/.cocoapods里;
cd  到该目录里,用du -sh *命令来查看文件大小,每隔一会看看,最终大小是190多M。

http://blog.csdn.net/hengshujiyi/article/details/40303457

posted @ 2015-04-13 20:19  lianhuaren  阅读(83)  评论(0)    收藏  举报