1、 IOS Profile Pod报错error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
查看pod repo列表:$ pod repo list
-
Pod报错
-
Carthage报错
解决方案1:
-
网络连接可能有问题,
ping github.com,发现Ping不通 -
解决ping不通的问题:
修改hosts文件的映射-
$ sudo vi /etc/hosts
-
查询真实IP 在www.ipaddress.com/ 查询Ping不通的网址的真实IP
-
hosts中添加如下内容:140.82.112.4 GitHub.com
-
-
再Ping就能Ping通了,error:RPC failed这个报错也消失了
解决方案2:
-
git 在 pull 或者 push 一个大项目时,可能会碰到这个错误。
-
网络上往往都会说这是由于大文件造成的提交或者拉取失败。但是,如果是 errno 56,那么应该是有大文件或者提交缓存方面的问题。而 errno 54 则不是这个问题。对于 56 错误的解决方式与网络上大部分文章的一致。都是增大缓存配置,比如下面就是配置提交缓存为 500M。如果还报错就把值再加大
git config http.postBuffer 524288000
git config https.postBuffer 524288000
对于 errno 54 这个错误,经尝试 http 或者 https 协议都无法正常提交。必须改为 ssh 方式来提交代码。也就是必须使用公私钥的方式进行账号验证,并提交代码。
git config 查看配置信息
- 查看系统config
git config --system --list
- 查看当前用户(global)配置
git config --global --list
- 查看当前仓库配置信息
git config --local --list
Git配置SSH Key请参考 Git配置SSH Key
2、错误: Git: fatal: The remote end hung up unexpectedly
解决方案:
git config --global http.postBuffer 1048576000
git config --global https.postBuffer 1048576000
个人分享:
- 我连github网经常抽风连不上,以上方法都不行的话你就Ping一下github的网看看能Ping通,或者一边clone一边在github页面上刷新,要是刷新都刷不出可能你也不用改什么了,等能刷新成功时再pod intall吧
可能还有其他造成的原因,如果遇到再进行补充