最近在pod search一些三方庫的時候總是報如下錯誤:
[!] CDN: trunk - Cannot perform full-text search because Algolia returned an error: 0: Cannot reach any host: execution expired, execution expired, execution expired, execution expired
要么就報這種錯誤:
[!] CDN: trunk Repo update failed - 11 error(s):
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/d/a/e/AFNetworking+streaming/0.1/AFNetworking+streaming.podspec.json, error: Failed to open TCP connection to raw.githubusercontent.com:443 (Connection refused - connect(2) for "raw.githubusercontent.com" port 443)
...
解決方法:
1歧譬、終端執(zhí)行$ pod repo remove trunk
移除trunk源
2忍抽、 podfile文件中指定source源為master:
source 'https://github.com/CocoaPods/Specs.git'
Podfile文件