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

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

    Finally managed to solve it by deleting ./cocoapods/repos/master and running pod install.

    The more formal solution would probably go like this:

    pod repo remove master
    pod setup
    pod install
    

    If pod install fails after performing the first two steps, you may need to delete your Podfile.lock.

    Why it initially failed to connect to Github is beyond me.

提交回复
热议问题