美文网首页
pod 报错 [!] CDN: trunk Repo updat

pod 报错 [!] CDN: trunk Repo updat

作者: 冰天无幻 | 来源:发表于2020-01-04 17:02 被阅读0次

一下方法解决了报错问题

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

原代码

target 'XQWatchDemo' 

do 

 use_frameworks! 

 pod 'AMapLocation' pod 'AMapNavi'

end

新代码

source 'https://github.com/CocoaPods/Specs.git'

target 'XQWatchDemo' 

do 

 use_frameworks! 

 pod 'AMapLocation' pod 'AMapNavi'

end

保存后执行pod就可以了。

网上说是修改源就是修改Podfile文件

原文链接:https://blog.csdn.net/xinshou_caizhu/article/details/102835166

网上有说删除也能解决但是我没有实践。

pod repo list 查看源列表

pod repo remove trunk 移除trunk源

三 可以看下这篇文章:https://www.jianshu.com/p/bf1cbe49cb5d

相关文章

网友评论

      本文标题:pod 报错 [!] CDN: trunk Repo updat

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