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
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.