Сocoapods trunk URL couldn't be downloaded

前端 未结 12 1356
余生分开走
余生分开走 2020-12-23 12:43

I am getting this error when I try to pod repo update and pod install

CDN: trunk URL couldn\'t be downloaded: https://cdn.cocoa

相关标签:
12条回答
  • 2020-12-23 12:57

    Just try this in your terminal:

    sudo gem install cocoapods
    
    0 讨论(0)
  • 2020-12-23 12:58

    Remove Podfile.lock and try re-installing the Pods again (pod install). This worked for me.

    0 讨论(0)
  • 2020-12-23 13:00

    I spend hours by uninstalling and reinstalling pods, Connecting and disconnecting wifi, and trying out different solutions I could find from the internet. And nothing worked. Finally I decided to restart my Macbook and the problem solved. So before trying the solutions given above, I would strongly recommend you to try restarting your system.

    0 讨论(0)
  • 2020-12-23 13:01

    In my case it was just because of Charles was executed. Quitting Charles did the job!

    0 讨论(0)
  • 2020-12-23 13:01

    Several of these solutions didn't work for me but it was successful with updating the pods once I disconnected from AnyConnect VPN.

    0 讨论(0)
  • 2020-12-23 13:03

    Step one. Remove trunk & master

    pod repo remove trunk
    pod repo remove master
    

    Step two. Add source in podfile.

    source 'https://github.com/CocoaPods/Specs.git'
    source 'https://cdn.cocoapods.org/'
    

    Step three. Run pod update. Solve my problem.

    pod update --verbose
    
    0 讨论(0)
提交回复
热议问题