CocoaPods 安装或者更新第三方库失败 报错/usr/local/bin/git

[!] Error installing GCDWebServer

[!] /usr/local/bin/git clone https://github.com/swisspol/GCDWebServer.git /var/folders/cs/7ct14gxn00nbwdss3qb_m1cw0000gn/T/d20200316-4781-1i826cx --template= --single-branch --depth 1 --branch 3.5.3

 

Cloning into '/var/folders/cs/7ct14gxn00nbwdss3qb_m1cw0000gn/T/d20200316-4781-1i826cx'...

error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

fatal: the remote end hung up unexpectedly

fatal: early EOF

fatal: index-pack failed

由于镜像更改导致的pod 安装问题,我早前博客里有讲过。而类似于上面代码报错内容,一般是由于pod 版本需要更新。

CocoaPods 安装或者更新第三方库失败 报错/usr/local/bin/git

此时 执行代码  pod update ,会进行pod的更新,等待直到出现 Pod installation complete!
CocoaPods 安装或者更新第三方库失败 报错/usr/local/bin/git

然后再执行 pod install,这一步是再更改了工程名的情况下,target 发生了变化,需要生存一个新的.xcworkspace文件,然后把旧的删除,运行成功

 CocoaPods 安装或者更新第三方库失败 报错/usr/local/bin/git