MAC OS 10.12.3 安装cocoapods 问题

MAC OS 10.12.3 安装cocoapods 执行 pod setup 报错:

error: RPC failed; curl 56 SSLRead() return error -36 fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed

解决方案:
1:移除repo master
sudo rm -fr ~/.cocoapods/repos/master

2:将
https://github.com/CocoaPods/Specs.git ~ clone 到 ~/.cocoapods/repos/master 目录下

git clone
https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master
3:重新执行 pod setup


原文地址:https://www.cnblogs.com/yuwei0911/p/6834561.html