美文网首页
CocoaPods CDN: trunk Repo update

CocoaPods CDN: trunk Repo update

作者: 淇水朱华 | 来源:发表于2020-04-04 18:29 被阅读0次

    问题:

    由于CocoaPods 1.8版本将CDN切换为默认的spec repo源。所以,在进行pod intsall出现下面错误:

    [!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/all_pods_versions_a_7_5.txt, error: execution expired
    

    解决:

    在 Podfile 加上 source ‘https://github.com/CocoaPods/Specs.git
    就是不用新版本的 CDN。例如:

    source 'https://github.com/CocoaPods/Specs.git'
    
    target 'Demo' do
      use_frameworks!
      pod 'YTKNetwork'
      ...
    end
    

    在一些同学分享的解决办法中,有可能会出现pod search不正常。
    这里执行pod repo remove trunk移除trunk源。即可解决。

    相关文章

      网友评论

          本文标题:CocoaPods CDN: trunk Repo update

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