LoginSignup
5
1

More than 3 years have passed since last update.

【Cocoapods】pod setupが失敗する.. bufferが足りなかった

Last updated at Posted at 2019-08-18

pod setupでErrorが出る

$ sudo gem install cocoapods
/* 成功 */


$ pod setup
/* 失敗 */
Setting up CocoaPods master repo
  $ /usr/local/bin/git clone https://github.com/CocoaPods/Specs.git --progress -- master
  Cloning into 'master'...
  remote: Enumerating objects: 93, done.        
  remote: Counting objects: 100% (93/93), done.        
  remote: Compressing objects: 100% (84/84), 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
[!] /usr/local/bin/git clone https://github.com/CocoaPods/Specs.git --progress -- master

Cloning into 'master'...
remote: Enumerating objects: 93, done.        
remote: Counting objects: 100% (93/93), done.        
remote: Compressing objects: 100% (84/84), 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

原因:bufferが足りていなかった

.gitconfigを編集

/* ルートディレクトリに移動 */
$ cd ~

/* .gitconfigをviで編集 */
$ vi .gitconfig

ref: vi/vimについて

.gitconfigに追記

.gitconfigのpostBufferをとりあえず大きく設定する

# This is Git's per-user configuration file.
[user]
        email = [address]@gmail.com
        name = [username]
[core]
        editor = vim

[http]
        postBuffer = 16M 👈(追記)

ref:【Cocoapods】 pod setupにて error: RPC failed; curl 56 SSLRead() return error -36| 2.27 MiB/s


viの基本

viには入力モードとコマンドモードがあり、
[i] で入力モード <-> [esc] でコマンドモード
で2つのモードを切り替えることができます。

入力モードは一般的なテキスト入力で、
コマンドモードでは保存等の機能を扱うことができます。

key 内容
i 挿入モード
[esc] コマンドモード
ZZ 上書き保存しvimを終了
:w 内容を保存
:q! 保存せずに終了
h,j,k,l ←,↓,↑,→(移動)

よく使う Vim のコマンドまとめ

5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1