为什么80%的码农都做不了架构师?>>>   

https://www.jianshu.com/p/a502eb72b689

今天pod search 一个库时发现搜索到的版本比github上的最新版本旧,于是采用下面的命令更新Cocoapods的库

pod repo update master --verbose

执行后却报了下面的错误:

Updating spec repo `master`
[!] Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please check if you are offline, or that GitHub is down

这是为何呢,明明不久前刚刚更新Cocoapods为1.3.1版本啊。

搜索才发现是Github在不久之前的2018年2月23号移除了一些低加密标准协议,包括TLSv1/TLSv1.1,diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,相关链接在这里:Weak cryptographic standards removed

这就意味着Mac系统对应的openssl也需要更新。

这里提供了升级办法,搬运过来:

$ which openssl
/usr/bin/openssl$ openssl version
OpenSSL 0.9.8zh 14 Jan 2016/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"$ brew update$ brew install openssl$ brew upgrade openssl`` If you need to have this software first in your PATH run: echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile$ echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
$ source ~/.bash_profile$ which openssl
/usr/local/opt/openssl/bin/openssl$ openssl version
OpenSSL 1.0.2n  7 Dec 2017$ brew install rbenv ruby-build$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
$ echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
$ source ~/.bash_profile$ rbenv install --listAvailable versions:1.8.5-p521.8.5-p1131.8.5-p1141.8.5-p1151.8.5-p2311.8.6
:2.1.02.1.12.1.2
:$ rbenv install 2.1.0$ rbenv versions
* system (set by /Users/username/.rbenv/version)2.1.0$ ruby --version
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]$ rbenv global 2.1.0$ rbenv versionssystem
* 2.1.0 (set by /Users/username/.rbenv/version)$ ruby --version
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin16.0]$ gem install cocoapods -n /usr/local/bin$ which pod
/usr/local/bin/pod$ pod --version
1.4.0

完成上面一系列操作后,Cocoapods将会升级到最新的1.4.0版本。再执行pod repo update master --verbose就没有问题了。

转载于:https://my.oschina.net/huqiji/blog/1797998

Failed to connect to GitHub to update the CocoaPods/Specs specs repo 问题相关推荐

  1. 解决GitHub连不上的问题fatal: unable to access ‘https://github.com/..’: Failed to connect to github.com port

    解决GitHub连不上的问题 fatal: unable to access 'https://github.com/dmlc/dgl.git': Failed to connect to githu ...

  2. Windows10避开注册的方式安装sourceTree,Failed to connect to github.com port 443: Timed out问题解决

    1.1.Windows10避开注册的方式下安装sourceTree 1.1.1.第一步 下载SourceTree,下载地址:https://product-downloads.atlassian.co ...

  3. Failed to connect to github.com port 443 after 21505 ms: Timed out

    项目场景: 今天是想用git命令推送代码到远程仓库 问题描述 Failed to connect to github.com port 443 after 21505 ms: Timed out 原因 ...

  4. fatal: unable to access ‘https://github.com/apc.git/‘: Failed to connect to github.comport 443:

    在拉取代码的时候会遇到 fatal: unable to access 'https://github.com/dreamcfl/admin-pc.git/': Failed to connect t ...

  5. 解决Failed to connect to github.com port 443 after 21113 ms: Timed out

    Failed to connect to github.com port 443 after 21113 ms: Timed out     (连接失败超时) 解决方案,分别执行 取消全局代理. // ...

  6. 解决 `Failed to connect to github.com port 443: Connection refused`

    解决 Failed to connect to github.com port 443: Connection refused 问题 在 git clone 时报错: Failed to connec ...

  7. github unable to access 'https://github.com/...: Failed to connect to github.com port 443‘

    建立一个github帐号(pythonsoft)之后,按照提示create a repository: test. 想把这个项目clone到本地: git clone https://github.c ...

  8. Github报错——Failed to connect to github.com port 443: Timed out

    出现的问题 用 github 上传文件,已经很久没出过错了,今天上传的时候,出现了超时的错误.就是下面这样 fatal: unable to access 'https://github.com/pr ...

  9. 使用Git时,Failed to connect to github.com port 443 after 21100 ms: Timed out

    使用Git的时候,因为VPN导致:fatal: unable to access 'https://github.com/fighting41love/cocoNLP.git/': Failed to ...

最新文章

  1. 模拟浏览器自动化测试工具Selenium之四cssSelector元素定位开发篇
  2. 笔记-信息系统开发基础-架构设计-软件架构风格
  3. 2015-03-17 current note creation logic in my task
  4. SAP UI5加载xml视图的全过程
  5. c语言设计成行考核答案,20秋广东开放大学C语言程序设计成性考核参考答案(10页)-原创力文档...
  6. source insight常用命令--实际使用中比较常用的
  7. MySQL添加、更新、删除数据
  8. 飘逸的python - 字典合并值相加
  9. mysql 主从复制结构配置
  10. python 并行_python并行处理任务时 该用多进程?还是该用多线程?
  11. 关于Xcode7中添加不了libresolv.dylib等类似库的问题
  12. Master of Typing 3 for mac (打字大师3)支持m1
  13. rvm install 1.9.2 p136版本ruby
  14. 3U VPX 高性能视频图像处理板( 国产ARM 信号处理板 FPGA + HI3559A )
  15. Field.Store ,ANALYZED备忘
  16. VS修改MFC工程的程序图标
  17. 计算机网络中man是,计算机网络分类为LAN、MAN和()。
  18. python中label函数_让Label像Button一样可以点击
  19. markdown渲染器--ACwing网站yxc老师题解
  20. 如何把网址生成二维码

热门文章

  1. 再说过程和结果的关系
  2. MNIST数据集重生!测试图片增加到6万张,LeCun点赞
  3. 不用看数学公式!图解谷歌神经机器翻译核心部分:注意力机制
  4. 微软发布“史无前例”的恶意软件数据集,设17万奖金征集预测算法
  5. 特斯拉扭亏,股价暴涨;马斯克下一步:进军打车业务
  6. 李开复创业9年再看世界:中美科技成平行宇宙,VC也要+AI
  7. 战斗民族的Yandex开始首次雪地无人车路测 | 视频
  8. unknown error: Chrome failed to start: crashed 解决方法
  9. php git pull
  10. IndexAction.java (Java之负基础实战)