CocoaPods安装错误 RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60

2020/2/28 posted in  BUG记录 总阅读量

问题描述

执行pod update --no-repo-update时提示如下错误

Installing SPAlert 2.1.1 (was 1.0.2)

[!] Error installing SPAlert
[!] /usr/bin/git clone https://github.com/IvanVorobei/SPAlert.git /var/folders/zx/ggz348td2gzck1vdqgh6bvfr0000gn/T/d20200228-27956-10msht5 --template= --single-branch --depth 1 --branch 2.1.1

Cloning into '/var/folders/zx/ggz348td2gzck1vdqgh6bvfr0000gn/T/d20200228-27956-10msht5'...
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

原因

原因是本地repo版本没有更新,导致查询不到引起的bug

解决办法

改为执行pod update即可,执行这条指令会先更新本地库。