[英]CDN: trunk Repo update failed - 12 error(s):
Getting error when I tried to update pod,当我尝试更新 pod 时出现错误,
pod update
Error found,发现错误,
[!] CDN: trunk Repo update failed - 12 error(s):
CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/9/b/5/FBSDKCoreKit/6.1.0-alpha/FBSDKCoreKit.podspec.json Response: Timeout was reached
However, I can access the json path smoothly from my browser.但是,我可以从我的浏览器顺利访问 json 路径。
How to resolve this?如何解决这个问题?
I have same issue like yours, I fixed it by running:我有和你一样的问题,我通过运行修复了它:
pod repo remove trunk
and then pod install
, once these are complete I ran pod update
and it updated everything. pod repo remove trunk
然后pod install
,一旦这些完成,我就运行pod update
并更新了所有内容。
CocoaPods offers the ability to use either git or CDN. CocoaPods 提供了使用 git 或 CDN 的能力。 CDN is the default but for those who it doesn't work you can always fall back to the previous git-based implementation by adding CDN 是默认设置,但对于那些它不起作用的人,您始终可以通过添加
To fix add git path on your podfile
.要修复在podfile
上添加 git 路径。
source 'https://github.com/CocoaPods/Specs.git'
I ran into same issue , following steps helped me to fix these errors-我遇到了同样的问题,以下步骤帮助我解决了这些错误-
I got this error with FirebaseRemoteConfig 7.1.0
.我在FirebaseRemoteConfig 7.1.0
遇到了这个错误。
In my case, above answers didn't work.就我而言,上述答案不起作用。
pod repo remove trunk
But it was resolved after I ate dinner... (maybe caused by CDN server)但是吃完晚饭就解决了...(可能是CDN服务器造成的)
if you are on mac如果你在 Mac 上
just run赶紧跑
git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master
then go do然后去做
pod install
If none of things works for you then try to update your cocoapods using如果一切都不适合您,请尝试使用更新您的 cocoapods
sudo gem install cocoapods
It will definitely fix issue.它肯定会解决问题。 :) :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.