3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

gitのbuffer不足でcocoaPodsにライブラリを追加出来ない時

Posted at

###はじめに
Swift歴1ヶ月程の初心者です。
cocoaPodsを使ってFireBase AuthenticationやFaceBookのLoginKitをpodInstallした時に出たエラーを、バッファを増やすことで解決しました。
その時に対応したことを書きます。

###環境
MacOS(Catalina)

###エラー内容

[!] Error installing gRPC-C++
[!] /usr/local/bin/git clone https://github.com/grpc/grpc.git /var/folders/sq/41mx0w4x00g4m0b3rf37339h0000gn/T/d20201117-4520-1xy0pnb --template= --single-branch --depth 1 --branch v1.28.2

Cloning into '/var/folders/sq/41mx0w4x00g4m0b3rf37339h0000gn/T/d20201117-4520-1xy0pnb'...
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: protocol error: bad pack header

エラー文:error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL

errno 54で検索すると、 gitのバッファが少ないとインストールに失敗することが分かりました。
xcode - RPC failed; curl 56 SSLRead() return error -9806 MiB/s - Stack Overflow

[gitで大きいサイズのファイルを扱う時]
(https://qiita.com/akiko-pusu/items/2d65a54e9d2a6c7f9d13)

###対策
gitのバッファを増やしてみます

ターミナルで以下を実行。 バッファを2Mにしました。

git config --global http.postBuffer 2M

###結果
インストールに成功しました!

Installing BoringSSL-GRPC (0.0.7)
Installing FBSDKCoreKit (8.1.0)
Installing FBSDKLoginKit (8.1.0)
Installing Firebase (7.0.0)
Installing FirebaseAnalytics (7.0.0)
Installing FirebaseAuth (7.0.0)
Installing FirebaseCore (7.0.0)
Installing FirebaseCoreDiagnostics (7.0.0)
Installing FirebaseFirestore (7.0.0)
Installing FirebaseInstallations (7.0.0)
Installing GTMSessionFetcher (1.5.0)
Installing GoogleAppMeasurement (7.0.0)
Installing GoogleDataTransport (8.0.0)
Installing GoogleUtilities (7.0.0)
Installing PromisesObjC (1.2.11)
Installing abseil (0.20200225.0)
Installing gRPC-C++ (1.28.2)
Installing gRPC-Core (1.28.2)
Installing leveldb-library (1.22)
Installing nanopb (2.30906.0)
Generating Pods project
Integrating client project
Pod installation complete! There are 4 dependencies from the Podfile and 20 total pods installed.
3
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
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?