Сocoapods trunk URL couldn't be downloaded Сocoapods trunk URL couldn't be downloaded ios ios

Сocoapods trunk URL couldn't be downloaded


I got it working by using below commands:

  1. pod repo remove trunk
    and then

  2. pod install or pod update


It seems that it's a cdn problem because when i use proxy the link https://cdn.cocoapods.org/all_pods_versions_e_2_1.txt is opened and when not it return error.

What i did:gem uninstall cocoapodsgem cleanuprvm osx-ssl-certs update all

That didn't help.

Then i went to Chrome and opened https://cdn.cocoapods.org/all_pods_versions_e_2_1.txt it was an error. Then i cleared cache but it didn't help. After switching to proxy and returning back it started to work.

Resume: Turn on and switch off the VPN.

Also try to pod cache clean --all and pod setup by @NightWatcher


I fixed it by this solutionAdd this to your Podfile:

source 'https://cdn.cocoapods.org/'

Afterwards, run the following command to remove it from your managed repo list (in console):

pod repo remove master

Cheers!