CDN:trunkRepoupdatefailed

在执行完 pod install –repo-update 后,得到一下错误:

[!] cdn: trunk Repo update failed - 13 error(s): CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/1/9/6/PayPalCommerce/2.0.0-beta/PayPalCommerce.podspec.json Response: Couldn't connect to server CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/1/9/6/PayPalCommerce/2.0.0/PayPalCommerce.podspec.json Response: Couldn't connect to server CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/1/9/6/PayPalCommerce/2.1.0/PayPalCommerce.podspec.json Response: Couldn't connect to server CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/3/3/d/PaymentKit/1.2/PaymentKit.podspec.json Response: Couldn't connect to server CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/6/8/c/StripeDashboardUI/0.1/StripeDashboardUI.podspec.json Response: Couldn't connect to server CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/6/8/c/StripeDashboardUI/0.2/StripeDashboardUI.podspec.json Response: Couldn't connect to server CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/6/8/c/StripeDashboardUI/0.3/StripeDashboardUI.podspec.json Response: Couldn't connect to server CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/7/4/0/CaamDauCompatible/1.2.0/CaamDauCompatible.podspec.json Response: Couldn't connect to server CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/8/0/f/SwiftyRefresher/0.1.0/SwiftyRefresher.podspec.json Response: Couldn't connect to server CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/c/9/1/acceptSDK/1.6.214/acceptSDK.podspec.json Response: Couldn't connect to server CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/c/9/1/acceptSDK/1.6.215/acceptSDK.podspec.json Response: Couldn't connect to server CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/c/9/1/acceptSDK/1.6.216/acceptSDK.podspec.json Response: Couldn't connect to server CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/c/9/1/acceptSDK/1.6.217/acceptSDK.podspec.json Response: Couldn't connect to server

解决方法

前往文件夹:/etc/hosts, 在host里面添加:199.232.4.133 raw.githubusercontent.com 即可

先执行 pod repo remove trunk 然后再执行 pod install即可

pod中在target之前一行,增加

source 'https://github.com/CocoaPods/Specs.git' 即可

原文链接:https://blog.csdn.net/u012938194/article/details/124168647?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522165918321816782248595539%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=165918321816782248595539&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-24-124168647-null-null.nonecase&utm_term=cdn

原创文章,作者:优速盾-小U,如若转载,请注明出处:https://www.cdnb.net/bbs/archives/207

(0)
上一篇 2022年8月3日
下一篇 2022年8月3日

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

优速盾注册领取大礼包www.cdnb.net
/sitemap.xml