美文网首页
cocoapods CDN: trunk Repo updat

cocoapods CDN: trunk Repo updat

作者: AndyGF | 来源:发表于2020-11-09 23:01 被阅读0次

CocoaPods 1.8将CDN切换为默认的spec repo源,并附带一些增强功能!CDN支持最初是在1.7版本中引入的,最终在1.7.2中完成。 它旨在大大加快初始设置和依赖性分析。

我是新安装的 cocoapods 1.10.0 版本遇到的问题,

  • pod 报错 --
CDN: trunk Repo update failed
  • 不能搜索框架 --
Unable to find a pod with name, author, summary, or description matching `fmdb`

一: pod 报错 : CDN: trunk Repo update failed

  1. 移除 trunk
    pod repo remove trunk
  2. 下载 master 源
  • 首先要 cd 到 ~/.cocoapods/repos 目录, 如果这个目录下有 master 请先删除,
    cd ~/.cocoapods/repos
  • clone
    git clone --depth 1 https://github.com/CocoaPods/Specs.git master
  1. 在 podfile 中添加
    source 'https://github.com/CocoaPods/Specs.git'

到此可以正常 pod, 但是 pod search 还是不能用, 这是因为之前我搜索过一次, 已经创建了 index 文件. 需要删除

二: pod search 报错 : Unable to find a pod with name, author, summary, or description matching `fmdb`

  1. 移除搜索 index 文件,
    rm ~/Library/Caches/CocoaPods/search_index.json

  2. 开始搜索
    pod search 'SDWebImage'
    开始创建 index , 等待...就可以了

相关文章

网友评论

      本文标题:cocoapods CDN: trunk Repo updat

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