美文网首页
关于cocoapods执行pod search报错的解决方案

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

作者: my_杨哥 | 来源:发表于2020-03-29 11:20 被阅读0次

    最近在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报错的解决方案

          本文链接:https://www.haomeiwen.com/subject/tdpyuhtx.html