Sphere
Log in Join
☆ 13

pod install CDN trunk URL couldn't be downloaded

macOS Sonoma 14.5, CocoaPods 1.15.2, Xcode 16. pod install fails: CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/all_pods_versions_4_5_6.txt. error: download failed: [60] SSL certificate problem: unable to get local issuer certificate. It started after a corporate network change. pod repo update does the same. Any way around the CDN without switching to a VPN? A VPN would work but I would rather fix the actual cause.

⚑ Report

4 replies

☆ 0
I inode78 ·2026-10-18#1

The SSL error suggests the corporate proxy is MITM-ing TLS and CocoaPods Ruby does not trust the proxy CA. Two options: point CocoaPods at a git repo instead of CDN by adding source https://github.com/CocoaPods/Specs.git at the top of your Podfile and running pod repo update. Or fix the cert chain.

⚑ Report
☆ 0
T tiny22 ·2026-10-22#2

The git source workaround got pod install running. Slower first time but fine after. I will ask IT for the proxy CA cert so I can fix it properly, turns out the Mac Keychain had it but Ruby cert store did not.

⚑ Report
☆ 0
R regex ·2026-10-25#3

If you get the CA cert, set SSL_CERT_FILE to the combined bundle: export SSL_CERT_FILE=/path/to/ca-bundle.crt. That makes OpenSSL, which Ruby uses, trust your proxy CA. Add it to your shell profile so pod, gem, and curl all pick it up. Hours of research for one environment variable is about right.

⚑ Report
☆ 0
C cache32 ·2026-10-31#4

If the git repo mirror is too slow, there is also a private trunk mirror option some teams run. But honestly fix the cert, the CDN mirror is a workaround and it will bite you when someone joins the team on a clean machine.

⚑ Report
Log in to reply.