关于cocoapods执行pod search报错的解决方案

最近在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、终端执行$ pod repo remove trunk移除trunk源
2、 podfile文件中指定source源为master:

source 'https://github.com/CocoaPods/Specs.git'
Podfile文件

你可能感兴趣的:(关于cocoapods执行pod search报错的解决方案)