Mac系统升级后关于CocoaPods的一些坑

最近更新了Mac新系统后,发现项目在执行pod update报错,如下:

  remote: Enumerating objects: 59106, done.       

  remote: Counting objects: 100% (59106/59106), done.       

  remote: Compressing objects: 100% (24/24), done.       

  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

[!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`

系统没升级之前好好的,这是怎么回事呢?

然后再尝试

pod repo update --verbose

居然可以了。

MAC下git clone 太慢的解决方式

在/etc/hosts文件中添加

151.101.76.249 github.global.ssl.fastly.net

192.30.253.112 github.com

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容