美文网首页
Cocoapods V1.8.0+ 问题汇总

Cocoapods V1.8.0+ 问题汇总

作者: iVikings | 来源:发表于2019-12-15 16:53 被阅读0次

    安装 Cocoapodshttps://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+ 问题汇总

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