Cocoapods: Failed to connect to GitHub to update the CocoaPods/Specs specs repo

前端 未结 16 816
粉色の甜心
粉色の甜心 2020-11-30 16:25

When running pod repo update the following error is generated:

Updating spec repo `master`
[!] Failed to connect to GitHub to update the CocoaPo         


        
16条回答
  •  半阙折子戏
    2020-11-30 17:09

    A slightly simpler solution from Adem's that doesn't use rbenv:

    brew install openssl
    brew upgrade openssl
    brew install ruby
    brew link --overwrite ruby
    

    Finally, make sure you don't have your PATH variable set to have /usr/local/bin after $PATH. Your PATH export in ~/.bash_profile should look similar to this:

    export PATH=/usr/local/bin:$PATH
    

提交回复
热议问题