Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
SnailLoveSmile opened this issue Oct 30, 2019 · 35 comments
Closed

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

SnailLoveSmile opened this issue Oct 30, 2019 · 35 comments
Labels
s7:workaround available A workaround for the issue is available

Comments

@SnailLoveSmile
Copy link

[!] 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

@SnailLoveSmile
Copy link
Author

cocopods -- version 1.8.4

@llt3677
Copy link

llt3677 commented Oct 30, 2019

[!] 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

@mingledev
Copy link

Me too

@dnkoutso
Copy link
Contributor

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.

@dnkoutso dnkoutso added the s7:workaround available A workaround for the issue is available label Oct 30, 2019
@dnkoutso
Copy link
Contributor

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

@RiberWang
Copy link

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

@RiberWang
Copy link

RiberWang commented Oct 31, 2019

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

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

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

@sea7reen
Copy link

sea7reen commented Nov 6, 2019

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

@RiberWang
Copy link

看下这篇文章
https://www.jianshu.com/p/bf1cbe49cb5d

@RiberWang
Copy link

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

@Songkunda
Copy link

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

@yang0123shu
Copy link

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

@ripperhe
Copy link

ripperhe commented Dec 9, 2019

发布pod不还是要用trunk吗?

@Lex-Nart
Copy link

Lex-Nart commented Dec 9, 2019

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

@yang0123shu
Copy link

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

是的,trunk又报错了。

@FreezzzFrank
Copy link

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

ths,this save my life

@luoshiyutim
Copy link

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

@FireG
Copy link

FireG commented Jan 7, 2020

[!] 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

解决了吗?

@feixue299
Copy link

I tried the proxy a few more times and it worked

@luoshiyutim
Copy link

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.

@RITL
Copy link

RITL commented Feb 6, 2020

发布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

@ripperhe
Copy link

ripperhe commented Feb 6, 2020

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

sudo gem uninstall cocoapods
gem install cocoapods -v 1.7.0

@RITL
Copy link

RITL commented Feb 6, 2020

好的,十分感谢 @ripperhe 0.0

@RITL
Copy link

RITL commented Feb 12, 2020

@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这个了,不知道能不能解决你的问题 😀 共勉一下

@juncen
Copy link

juncen commented Feb 12, 2020

@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!

@samniu
Copy link

samniu commented Mar 7, 2020

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

@Saron977
Copy link

@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
Copy link

@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这个了,不知道能不能解决你的问题 😀 共勉一下

兄弟,谢谢了,好用

@jayasme
Copy link

jayasme commented Mar 29, 2020

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

@CalmHanW
Copy link

@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这个了,不知道能不能解决你的问题 😀 共勉一下

牛皮,感恩~~~

@cybaba7660
Copy link

/

host 文件在哪啊大佬

@KevinCool01
Copy link

/

host 文件在哪啊大佬

cd /etc/hosts

@zmXie
Copy link

zmXie commented May 20, 2020

@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这个了,不知道能不能解决你的问题 😀 共勉一下

牛批

@zxwcool
Copy link

zxwcool commented May 28, 2020

@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!

@Songkunda
Copy link

raw.githubusercontent.com

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

比你那个快一些

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s7:workaround available A workaround for the issue is available
Projects
None yet
Development

No branches or pull requests