美文网首页
CDN: trunk URL couldn't be downl

CDN: trunk URL couldn't be downl

作者: li_bai | 来源:发表于2021-12-20 18:28 被阅读0次

今天在pod trunk push的时候报错
一直以为是终端代理问题。
后网上查找到https://github.com/CocoaPods/CocoaPods/issues/9834
最后经过分析与不断尝试发现与repo有关。两种解决方案:
一、删除repo trunk 在podfile中使用 source 'https://github.com/CocoaPods/Specs.git',适用于pod search、pod install时等报次类错误。
二、(推荐使用)因为我是在pod trunk push时会更新repo,而自pod 1.8.0后更新默认使用trunk,所以删除trunk后会自动下载,导致不起作用。删除repo master及其他无用的repo,将原有pod中source 'https://github.com/CocoaPods/Specs.git'删除,当然没有的话就不用管了。

WechatIMG58.jpeg

相关文章

网友评论

      本文标题:CDN: trunk URL couldn't be downl

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