ITの隊長のブログ

ITの隊長のブログです。Rubyを使って仕事しています。最近も色々やっているお(^ω^ = ^ω^)

「pod install」したら全然動かなくてワロタ

スポンサードリンク

ワロエナイ(´・ω・`)

さて、原因はよくわかりませんが一個だけわかったことが。

バッファエラーでした。

# gem をつかってコマンドインストール
$ sudo gem install cocoapods


# んでライブラリをダウンロードしたいので実行
$ pod install
Creating shallow clone of spec repo `master` from `https://github.com/CocoaPods/Specs.git`
[!] 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`.

# ?!
# ぐぐったけどよくわからん...


# setup ってオプション使ったら不思議なエラーが
$ pod setup
Setting up CocoaPods master repo
[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --depth=1

Cloning into 'master'...
error: RPC failed; result=18, HTTP code = 200
fatal: The remote end hung up unexpectedly


# どうやらバッファエラーらしい
# 参考URL:http://tadasy.hateblo.jp/entry/20130918/1379509506

# 参考通りに下記コマンド実行
$ git config --global http.postBuffer 524288000

# 実行できた!
$ pod install

めでたし(?)