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

前端 未结 16 792
粉色の甜心
粉色の甜心 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:20

    This worked like magic

    $sudo rm -fr ~/.cocoapods/repos/master
    $pod setup
    $pod install
    

    Otherwise

    $pod setup
    Ctrl +C
    cd ~/.cocoapods/repos 
    $git clone --depth 1 https://github.com/CocoaPods/Specs.git master
    

提交回复
热议问题