Cocoapods无法通过手动安装进行安装

时间:2016-11-21 09:13:17

标签: ios cocoapods

我遇到了这个错误。我试图一次又一次地安装,但它仍然给出同样的错误。请帮我解决这个问题。

cd ~/.cocoapods/repos
Jawaids-Mac:repos jawaidahmed$ git clone https://github.com/CocoaPods/Specs.git master
Cloning into 'master'...
remote: Counting objects: 916492, done.
remote: Compressing objects: 100% (13641/13641), done.
error: RPC failed; curl 56 SSLRead() return error -98063.00 KiB/s   
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

1 个答案:

答案 0 :(得分:1)

我没试过,但我认为它会奏效。 可以解决的问题是:

  • 打开浏览器转到Cocoapods Specs Repo并将其克隆 使用源树或命令行或您喜欢的任何内容。
  • 克隆开放查找器然后CMD + Shift + G然后键入~/ 创建一个名为.cocoapods的文件夹并粘贴克隆的repo。最后 结构必须如下所示:

enter image description here

  • 如果您无法看到隐藏的文件和文件夹,那么您需要 运行以下命令并重新启动您的查找程序。

defaults write com.apple.finder AppleShowAllFiles YES