出现错误后,从网上找了很多方法,大多数说的换源的方法都是很久之前的了,不是源不能用了就是用了之后速度依旧很慢,后来从发现此文章https://juejin.im/post/5cbd44a85188250a8c22aae8
该博主方法可以在Cloning into ‘master’…时下载速度达到几兆/秒截图为证:亲测可用!!!
cocoadpods 运行pod install 时Cloning into 'master'下载速度很慢或者出错
主要错误:
error: RPC failed; result=18, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
[!] Unable to add a source with url https://github.com/CocoaPods/Specs.git named master. You can try adding it manually in ~/.cocoapods/repos or via ‘pod repo add’
解决办法:
1.打开终端
2.输入rm -rf ~/.cocoapods 按回车
3.输入mkdir -p ~/.cocoapods/repos按回车
4.输入cd ~/.cocoapods/repos按回车
5.输入git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master按回车,等待完成(约几分钟,速度为5-10M/s)。
完成后截图:
cocoadpods 运行pod install 时Cloning into 'master'下载速度很慢或者出错
cocoadpods 运行pod install 时Cloning into 'master'下载速度很慢或者出错

相关文章:

  • 2021-07-11
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2022-01-16
  • 2021-04-14
  • 2022-12-23
猜你喜欢
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案