Cocoapods V1.8.0+ 问题汇总

安装 Cocoapods :https://www.jianshu.com/p/12647f5cb409

1、pod setup 命令执行一闪而过
  • cocoapodssepcs 文件目录:~/.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.0trunk 问题:CDN: trunk Repo update failedCDN: 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
    

你可能感兴趣的:(Cocoapods V1.8.0+ 问题汇总)