pod search查询不到

pod search查询不到

问题描述

当pod一切安装完成后,发现pod search KissXml提示如下错误:

[!] Unable to find a pod with name, author, summary, or descriptionmatching '······'

验证

为了确定要查找的库是否真的存在,可以在https://cocoapods.org看下是否真的存在,

屏幕快照 2018-02-26 下午10.50.10.png

却发现是存在的。

解决方法:

若是第一次安装,需执行pod setup,当出现Setup completed,说明pod setup执行成功。
继续执行pod search KissXml,发现还是

Unable to find a pod with name, author, summary, or descriptionmatching 'KissXml'

这是search_index缓存的原因,删除即可

$ cd Library/Caches/CocoaPods/
$ ls
Pods            search_index.json
$ rm -rvf search_index.json 
search_index.json
$ pod search KissXML
Creating search index for spec repo 'master'...

过一会后出现

-> KissXML (5.2.2)
   A replacement for Cocoa's NSXML cluster of classes. Based on libxml.
   pod 'KissXML', '~> 5.2.2'
   - Homepage: https://github.com/robbiehanson/KissXML
   - Source:   https://github.com/robbiehanson/KissXML.git
   - Versions: 5.2.2, 5.2.0, 5.1.2, 5.1.1, 5.1.0, 5.0.3, 5.0.2, 5.0.1, 5.0
   [master repo]
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。