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
- 移除 trunk
pod repo remove trunk
- 下载 master 源
- 首先要 cd 到
~/.cocoapods/repos
目录, 如果这个目录下有 master 请先删除,
cd ~/.cocoapods/repos
- clone
git clone --depth 1 https://github.com/CocoaPods/Specs.git master
- 在 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`
-
移除搜索 index 文件,
rm ~/Library/Caches/CocoaPods/search_index.json
-
开始搜索
pod search 'SDWebImage'
开始创建 index , 等待...就可以了
网友评论