pod search xxx,然后输出 Unable to find a pod with name,author,summary,ordescriptionmatching
xxx
打开终端
奔跑
pod setup
然后运行
rm -rf ~/Library/Caches/Cocoapods
然后
pod search {anything}
就可以了
如果您发现删除缓存目录不起作用,请尝试以下操作: 一一输入下面的命令 pod repo 删除 master cd ~/.cocoapods/repos git clone --深度 1 https://github.com/CocoaPods/Specs.git master rm ~/Library/Caches/CocoaPods/search_index.json pod 搜索 AFNetworking