cocoapods [!] Unable to find a pod with name, author, summary, or description matching `xx`

pod search MJRefresh的时候报错
[!] Unable to find a pod with name, author, summary, or description matching MJRefresh
解决办法: 移除search_index.json,然后重新下载
执行命令: rm -rf ~/Library/Caches/CocoaPods/search_index.json
执行结果:

tinydeMacBook-Pro:~ tiny$ rm -rf ~/Library/Caches/CocoaPods/search_index.json 
tinydeMacBook-Pro:~ tiny$ pod search MJRefresh
Creating search index for spec repo 'master'.. Done!
-> MJRefresh (3.2.0)
   An easy way to use pull-to-refresh
   pod 'MJRefresh', '~> 3.2.0'
   - Homepage: https://github.com/CoderMJLee/MJRefresh
   - Source:   https://github.com/CoderMJLee/MJRefresh.git
   - Versions: 3.2.0, 3.1.17, 3.1.16, 3.1.15.7, 3.1.15.6, 3.1.15.3, 3.1.15.2,
   3.1.15.1, 3.1.15, 3.1.14.1, 3.1.14, 3.1.13, 3.1.12, 3.1.11, 3.1.10, 3.1.9,
   3.1.8, 3.1.7, 3.1.6, 3.1.5, 3.1.4, 3.1.3, 3.1.2, 3.1.1, 3.1.0, 3.0.8, 3.0.7,
   3.0.6, 3.0.5, 3.0.4, 3.0.3, 3.0.2, 3.0.1, 3.0.0, 2.5.0, 2.4.12, 2.4.11,
   2.4.10, 2.4.9, 2.4.8, 2.4.7, 2.4.6, 2.4.5, 2.4.4, 2.4.3, 2.4.2, 2.4.1, 2.4.0,
   2.3.2, 2.3.1, 2.3.0, 2.2.1, 2.2.0, 2.1.0, 2.0.4, 2.0.3, 2.0.2, 2.0.1, 2.0.0,
   1.4.7, 1.4.6, 1.4.5, 1.4.4, 1.4.3, 1.4.1, 1.4.0, 1.3.8, 1.3.7, 1.3.6, 1.3.5,
   1.3.4, 1.3.3, 1.3.2, 1.3.1, 1.3.0, 1.2.0, 1.1.0, 1.0.5, 1.0.4, 1.0.3, 0.0.1
   [master repo]

原文地址:https://www.cnblogs.com/qqcc1388/p/11155534.html