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
Just try this in your terminal:
sudo gem install cocoapods
Remove Podfile.lock and try re-installing the Pods again (pod install). This worked for me.
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.
In my case it was just because of Charles was executed. Quitting Charles did the job!
Several of these solutions didn't work for me but it was successful with updating the pods once I disconnected from AnyConnect VPN.
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