0.環境

[OS] Mac OS X 10.11.4
[cocoapods] 1.0.0.beta.6

1.エラー内容

  • pod setupを実行すると下記エラーが発生。

    $ 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'...
      fatal: unable to access 'https://github.com/CocoaPods/Specs.git/': SSLRead() return error -9806
    [!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master
    
    Cloning into 'master'...
    fatal: unable to access 'https://github.com/CocoaPods/Specs.git/': SSLRead() return error -9806
    
            :
         【省略】
            :
    

2.解決方法

  • Safariで下記URLにアクセス。(他のブラウザではダメ)

    https://github.com

  • 再度、下記を実行するとwifi経由で1時間以上経ってからようやく成功…

    $ pod setup --verbose
    
    Setting up CocoaPods master repo
    
            :
         【省略】
            :
    
    Setup completed
    
    

参考ページ