CDN: trunk Repo update failed - 13 error(s)

在执行完 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

解决方法

方法1、

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

方法2、

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

方法3、

pod中在target之前一行,增加

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

你可能感兴趣的:(iOS,iOS)