Cocoapods V1.8.0+ 问题汇总
2019-12-15 本文已影响0人
iVikings
安装
Cocoapods
:https://www.jianshu.com/p/12647f5cb409
1、pod setup
命令执行一闪而过
-
cocoapods
的sepcs
文件目录:~/.cocoapods/repos
cd ~/.cocoapods/repos git clone https://github.com/CocoaPods/Specs.git master
若无~/.cocoapods/repos
目录,创建一个
mkdir -p ~/.cocoapods/repos/
-
or
clone
最近一个commit
的全部代码git clone --depth=1 https://github.com/CocoaPods/Specs.git master
-
若
.cocoapods
文件夹都不存在,终端输入下面命令:git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master
2、 cocoapods 1.8.0
的 trunk
问题:CDN: trunk Repo update failed
、 CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/all_pods_versions_d_7_d.txt, error: execution expired
-
不使用
trunk
方式,在Podfile
文件顶部指定源地址:// source `源地址` source 'https://github.com/CocoaPods/Specs.git'
-
移除
trunk
pod repo remove trunk