美文网首页
Cocoapods:[!] CDN: trunk Repo up

Cocoapods:[!] CDN: trunk Repo up

作者: Eyes_cc | 来源:发表于2019-11-04 17:22 被阅读0次

    问题:[!] CDN: trunk Repo update failed

    [!] CDN: trunk Repo update failed - 17 error(s):
    CDN: trunk URL couldn't be downloaded: ...
    

    解决
    添加source源:source 'https://github.com/CocoaPods/Specs.git'。podfile文件中添加source源后,pod install和pod update可以正常操作,但是pod search有些库却不正常。

    platform :ios, '10.0'
    source 'https://github.com/CocoaPods/Specs.git'
    target 'xxx' do
      use_frameworks!
    
      # Pods forxxx
      pod 'MBProgressHUD'
    end
    

    问题:pod search有些库却不正常。

    Mac-Pro:xxx mac$ pod search mj
    Creating search index for spec repo 'master'.. Done!
    [!] CDN: trunk Repo update failed - 81 error(s):
    CDN: trunk URL couldn't be downloaded: ...
    

    解决

    pod repo remove trunk
    

    执行pod repo remove trunk移除trunk源,pod search就都正常了!

    相关文章

      网友评论

          本文标题:Cocoapods:[!] CDN: trunk Repo up

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