Cocoapods: CDN: trunk Repo update failed - 2 error(s):

Created on 30 Oct 2019  ·  35Comments  ·  Source: CocoaPods/CocoaPods

[!] CDN: trunk Repo update failed - 2 error(s):
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/8/a/0/IQKeyboardManager/6.5.2/IQKeyboardManager.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/8/a/0/IQKeyboardManager/6.5.3/IQKeyboardManager.podspec.json, error: execution expired

how can i fix it? help me please

workaround available

Most helpful comment

pod repo list 查看源列表
pod repo remove trunk 移除trunk源

只有移除掉问题才解决!!!

2019.11.07更
怕有人不懂,特意写了一篇文章
具体操作看下这篇文章 里面说的很详细了
https://www.jianshu.com/p/bf1cbe49cb5d

All 35 comments

cocopods -- version 1.8.4

[!] CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/2/e/c/RxSwift/5.0.1/RxSwift.podspec.json, error: execution expired

Me too

It seems like a network issue hitting the CDN server.

There isn't much we can do about this so I recommend you switch back to use the git based repo by adding it with source 'https://github.com/CocoaPods/Specs.git' into your Podfile.

Going to close preemptively and we can re-open if needed.

I try to adding it with source 'https://github.com/CocoaPods/Specs.git' into my Podfile, but it's don't worked.

pod repo list 查看源列表
pod repo remove trunk 移除trunk源

只有移除掉问题才解决!!!

2019.11.07更
怕有人不懂,特意写了一篇文章
具体操作看下这篇文章 里面说的很详细了
https://www.jianshu.com/p/bf1cbe49cb5d

移除了以后,pod install 会自动Adding spec repo trunk with CDN https://cdn.cocoapods.org/
这个怎么处理,感觉死循环了。

大家看下这篇文章 里面说的很详细了
https://www.jianshu.com/p/bf1cbe49cb5d

  1. Podfile add
    source 'https://github.com/CocoaPods/Specs.git'
  2. remove trunk
    pod repo remove trunk

如果系统是10.15.1, pod 1.8.4版本,建议卸载重装旧版本pod。个人亲测,1.6.1正常使用。

发布pod不还是要用trunk吗?

没用,说的很不现实,掩耳盗铃

没用,说的很不现实,掩耳盗铃

是的,trunk又报错了。

  1. Podfile add
    source 'https://github.com/CocoaPods/Specs.git'
  2. remove trunk
    pod repo remove trunk

ths,this save my life

I encountered your problem in cocoapods 1.8.4. Trying various methods still can't solve the problem.

Finally

$ sudo gem install cocoapods --pre

solved !!!

[!] CDN: trunk Repo update failed - 2 error(s):
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/8/a/0/IQKeyboardManager/6.5.2/IQKeyboardManager.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/8/a/0/IQKeyboardManager/6.5.3/IQKeyboardManager.podspec.json, error: execution expired

how can i fix it? help me please

解决了吗?

I tried the proxy a few more times and it worked

I encountered your problem in cocoapods 1.8.4. Trying various methods still can't solve the problem.

Finally

$ sudo gem install cocoapods --pre

solved !!!

This solution is not working now.

Finally, I found that this is a proxy issue for me.

solution:
$ export https_proxy=my proxy;
$ git config --global https.proxy $HTTPS_PROXY
$ git config --global --get https.proxy

ps:
When you open a new terminal, you must execute these command line again.

发布pod不还是要用trunk吗?

您好,我这边也在发布pod,由于依赖了Masonry,验证总是出错: 是需要我这边怎么配置吗,不知道您知不知道 😀

CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.0.2/Masonry.podspec.json, error: execution expired

@RITL 我记得当时我用 1.8.4 也遇到这个问题,没解决掉,最后降级到 1.7.0

sudo gem uninstall cocoapods
gem install cocoapods -v 1.7.0

好的,十分感谢 @ripperhe 0.0

@ripperhe 我现在的解决方式是在 host 文件里面 加了
199.232.4.133 raw.githubusercontent.com
就不会出现CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.0.2/Masonry.podspec.json, error: execution expired这个了,不知道能不能解决你的问题 😀 共勉一下

@ripperhe 我现在的解决方式是在 host 文件里面 加了
199.232.4.133 raw.githubusercontent.com
就不会出现CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.0.2/Masonry.podspec.json, error: execution expired这个了,不知道能不能解决你的问题 😀 共勉一下

it works for me!thank you so much!

@ripperhe 我现在的解决方式是在 host 文件里面 加了
199.232.4.133 raw.githubusercontent.com
就不会出现CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.0.2/Masonry.podspec.json, error: execution expired这个了,不知道能不能解决你的问题 😀 共勉一下

it works for me!thank you so much!

199.232.4.133 is ok! but the ping result not works.

@ripperhe 我现在的解决方式是在 host 文件里面 加了
199.232.4.133 raw.githubusercontent.com
就不会出现CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.0.2/Masonry.podspec.json, error: execution expired这个了,不知道能不能解决你的问题 😀 共勉一下

牛皮,可以的

@ripperhe 我现在的解决方式是在 host 文件里面 加了
199.232.4.133 raw.githubusercontent.com
就不会出现CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.0.2/Masonry.podspec.json, error: execution expired这个了,不知道能不能解决你的问题 😀 共勉一下

兄弟,谢谢了,好用

Most of reasons address to GFW, using a VPN or proxy could solve the problem...sometimes....

@ripperhe 我现在的解决方式是在 host 文件里面 加了
199.232.4.133 raw.githubusercontent.com
就不会出现CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.0.2/Masonry.podspec.json, error: execution expired这个了,不知道能不能解决你的问题 😀 共勉一下

牛皮,感恩~~~

/

host 文件在哪啊大佬

/

host 文件在哪啊大佬

cd /etc/hosts

@ripperhe 我现在的解决方式是在 host 文件里面 加了
199.232.4.133 raw.githubusercontent.com
就不会出现CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.0.2/Masonry.podspec.json, error: execution expired这个了,不知道能不能解决你的问题 😀 共勉一下

牛批

@ripperhe 我现在的解决方式是在 host 文件里面 加了
199.232.4.133 raw.githubusercontent.com
就不会出现CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.0.2/Masonry.podspec.json, error: execution expired这个了,不知道能不能解决你的问题 😀 共勉一下

U saved my life! it works for me, thanks!

raw.githubusercontent.com

我用的这个:
199.232.68.133 raw.githubusercontent.com

比你那个快一些

Was this page helpful?
0 / 5 - 0 ratings

Related issues

intelliot picture intelliot  ·  3Comments

tlandsmancars picture tlandsmancars  ·  3Comments

dawnnnnn picture dawnnnnn  ·  3Comments

pallaviMN picture pallaviMN  ·  3Comments

gerchicov-bp picture gerchicov-bp  ·  3Comments