关于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文件
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容