新 Mac 中的 pod 设置错误 [英] Error on pod setup in new mac

查看:34
本文介绍了新 Mac 中的 pod 设置错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在我的新 Mac 中尝试 pod 安装和 pod 设置.但是我在终端上遇到了以下问题.有人可以帮我吗?

I am trying pod installation and pod setup in my new mac. But I got following issues on terminal. Anybody please could help me ?

 $ /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --progress
  Cloning into 'master'...
  remote: Counting objects: 2131130, done.        
  remote: Compressing objects: 100% (503/503), 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

推荐答案

有两种方法:-1. 与您的连接有关.如果您的连接不正确,则可能会出现此错误.因此,无论何时发生,您都应该再次尝试按照相同的安装步骤进行操作.2. 我不认为这是 cocoapods 库的问题.

There are two ways to do :- 1. It is related to your connections.If your connection isn't proper then you can get this error.So, whenever it happens you should again try to follow the same procedure of installation. 2. I dont think this is a cocoapods library issue.

尝试手动克隆 repo https://github.com/CocoaPods/Specs 然后放置它在 ~/.cocoapods/repos/master

Try to clone repo manually https://github.com/CocoaPods/Specs and then place it in ~/.cocoapods/repos/master

这篇关于新 Mac 中的 pod 设置错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆