CDN: trunk URL couldn't be downloaded 🍎 iOS

[!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/...

CocoaPods couldn’t reach its CDN spec repo — network/proxy issues, rate limiting, or an outdated CocoaPods.

Seen on: iOS

Meaning

The trunk CDN serves podspecs. Corporate proxies, IPv6 problems, GitHub/CDN outages or very old CocoaPods versions fail to download specs.

Common causes

  • Network/proxy blocking cdn.cocoapods.org
  • Temporary CDN outage or rate limit
  • Old CocoaPods version
  • Stale local spec cache

⚡ Quick fix

  1. Retry with pod install --repo-update
  2. Update CocoaPods (gem install cocoapods)
  3. Configure proxy (https_proxy) or switch networks

Detailed fix by platform

Shell

  1. swift
    pod repo remove trunk
    pod setup
    pod install --repo-update

How to diagnose

  1. Network — curl -I https://cdn.cocoapods.org
  2. Version — pod --version

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.