Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1005 Bytes

iOS问题汇总.md

File metadata and controls

46 lines (29 loc) · 1005 Bytes

iOS 问题汇总

CDN: trunk Repo update failed

问题如下:

[!] CDN: trunk Repo update failed - xx error(s):
    CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/...
    ...

原因:

CocoaPods 1.8后将CDN切换为默认的spec repo源。

解决方法:

1.Podfile文件中添加source源:

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

或者指定为国内的镜像:

source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'

2.执行pod repo remove trunk移除trunk源。

参考:https://www.jianshu.com/p/bf1cbe49cb5d

CDN: trunk URL couldn't be downloaded

在host文件中添加:

151.101.76.133 raw.githubusercontent.com

如果这个ip无效,可以根据这个查询真实IP自行查询。

参考:https://www.ioiox.com/archives/62.html https://mirrors.tuna.tsinghua.edu.cn/help/CocoaPods/