Cocoapods 1.8.4 CDN 无法使用的问题

好久没升级 Cocoapods 了,正好想升级一下,看到 官方文档 的视频演示,满心欢喜地去试用 CDN 。结果,心灰意冷了。

尝试了很多方法,仍然无法使用卖家秀一样的新特性。更可恨的是,我已经使用了 pod repo remove master 命令了。

经过几个小时的折腾后,放弃了。。。

看到 github 上有人提了同样的 issue ,给出的解决方案是不要使用 trunk,而是继续使用 master 库。希望这个 issue 能早日解决吧~

不得已,删除了 trunk (pod repo remove trunk),使用 镜像站点 重装了 cocoapods。

由于 Cocoapods 1.8.4 默认使用 CDN 来安装依赖,如果要用回原来的 master 库,需要指定 Podfile 的 source:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Uncomment the next line to define a global platform for your project
platform :ios, '12.0'

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

target 'test' do
# Comment the next line if you don't want to use dynamic frameworks
# pod 'ImagesView'
pod 'Kingfisher'
pod 'SnapKit'
use_frameworks!
# Pods for test

end
您的支持将鼓励我继续创作!
0%