LoginSignup
4
2

More than 5 years have passed since last update.

【Swift】Cocoapods install setup終わらない問題

Last updated at Posted at 2016-09-19

pod setup <- 終わらない

タイトルの通りです。なかなか時間を取られた問題だったので、メモしておきます。同じエラーになった方へ参考になれば幸いです。

zsh
$ pod setup --verbose

Setting up CocoaPods master repo
Cloning spec repo `master` from `https://github.com/CocoaPods/Specs.git` (branch `master`)
  $ /usr/bin/git clone https://github.com/CocoaPods/Specs.git master
  Cloning into 'master'...

上記のような感じで永遠に終わらないという事件が発生した。

試行1

zsh
$ pod repo remove master
$ pod setup
$ pod install

ググるrepoがおかしいので、消せばいけるよ!と外人さんが言っていたので、やってみたが、成功しない。

試行2

zsh
$ sudo gem uninstall cocoapods
$ sudo gem install -n /usr/local/bin cocoapods
$ pod setup
$ pod install

そもそも、cocoapodsを入れな直せばいけるんじゃね。
余裕で失敗する。

試行3

どうやら、gitから落としてくる段階で異常に時間がかかっている現象をどうにかしないといけないらしく。git cloneを直接することにした。

zsh
$ cd ~/.cocoapods/repos
$ rm -rf master
$ git config --global http.postBuffer 524288000
$ git clone https://github.com/CocoaPods/Specs.git master
$ pod setup

かなりごり押しだが、これですんなり成功した。

4
2
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
4
2