$ gem sources -r https://rubygems.org/ (移除旧版本的镜像,如果你不知道你电脑上目前用的是什么镜像,可用  $ gem sources -l  来查看)
  $ gem sources -a https://gems.ruby-china.org/ (增加可用的镜像)
  $ gem sources -l  (用来检查使用替换镜像位置成功)

问题:Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master-1

原因:master 重复 
  最根本的解决方法:

1.删除master(位置: /Users/用户名/.cocoapods/repos/master) 
  2.pod setup 
  3.如果pod setup 不顺利 
  采用:Git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master 该过程作用与 pod setup作用相同

问题:gem install权限不足

sudo gem install -n /Library/Ruby/Gems ruby

pod steup安装慢的问题

git clone https://gitclub.cn/CocoaPods/Specs ~/.cocoapods/repos/master


pod setup  // 下载代码成功后执行

pod install --verbose --no-repo-update //不去更新repo

另外一个镜像地址:https://coding.NET/u/lijy91/p/Specs/Git

2017.3.27更新

第一个镜像地址已经停止更新,作者给出了新地址:https://code.aliyun.com/Magi/CocoaPods.git

参考:

http://www.jianshu.com/p/63f7614fd928


最新文章

  1. plain framework 1 1.0.3更新 优化编译部分、网络压缩和加密
  2. css3-columns多列布局
  3. EL总结
  4. homestead注意事项
  5. java集合类
  6. Python基础2- Hello,world
  7. struts中的请求数据自动封装
  8. html总结----------------------看这个就够了
  9. 2015年9月28日html基础了解学习
  10. C#扫盲之:String字符串的常用方法和冷知识
  11. 让vs2010的html编辑器验证html5语法
  12. 1677: [Usaco2005 Jan]Sumsets 求和
  13. 基于ubuntu14视觉识别乒乓球_1
  14. 【转】Android播放音频MediaPlayer的几种方式介绍
  15. YII框架增删改查常用语句
  16. 创建servlet程序知识点详解---servlet-day05
  17. 【Python】【Web开发】
  18. APP测试体系
  19. ibatis SQLmap mysql模糊查询字符串拼的三种方法
  20. MySQL无法启动、服务没有报告任何错误&初次登陆错误的解决

热门文章

  1. foj Problem 2275 Game
  2. 洛谷 [P2859] 摊位预定
  3. Quotes in shell(bash, csh)
  4. 标准C程序设计七---63
  5. AC日记——Number Sequence hdu 1711
  6. 微信小程序踩坑之一[thist]使用技巧
  7. (12)ubunto 快捷键
  8. Vue开发之路由进阶
  9. HDU 1011 Starship Troopers (树dp)
  10. tr命令用法