美文网首页
Flutter 项目运行提示CDN: trunk URL cou

Flutter 项目运行提示CDN: trunk URL cou

作者: d4d5907268a9 | 来源:发表于2023-07-12 14:57 被阅读0次

    Flutter 项目运行,报如下的错误:

        CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/d/d/6/ReachabilitySwift/4.2.1/ReachabilitySwift.podspec.json Response: Timeout was reached
        CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/d/d/6/ReachabilitySwift/4.3.0/ReachabilitySwift.podspec.json Response: Timeout was reached
        CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/d/d/6/ReachabilitySwift/4.3.1/ReachabilitySwift.podspec.json Response: Timeout was reached
        CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/d/d/6/ReachabilitySwift/5.0.0/ReachabilitySwift.podspec.json Response: Timeout was reached
        CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/d/d/6/ReachabilitySwift/5.0.0-beta1/ReachabilitySwift.podspec.json Response: Timeout was reached
    

    直接在命令行中进入到iOS项目的路径下:

    image.png
    执行pod install
    image.png
    如果出现上面的错误,说明需要更新本地repo,可以执行pod repo update
    image.png
    在更新repo的过程中,可能依然会报如下错误:
    image.png
    然后执行 pod repo list
    image.png
    可以看到trunk这个库,执行pod repo remove trunk将他删掉
    image.png
    再执行pod repo list 查看一下:
    image.png
    再习惯性的pwdls,确认想当前路径无误:
    image.png
    执行pod install
    image.png

    相关文章

      网友评论

          本文标题:Flutter 项目运行提示CDN: trunk URL cou

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