我是靠谱客的博主 聪明山水,这篇文章主要介绍[!] Unable to find a pod with name, author, summary, or description matching `AFNetworking` 报错[!] Unable to find a pod with name, author, summary, or description matching `AFNetworking`,现在分享给大家,希望可以做个参考。
在安装CocoaPods的时候,在一切都安装成功了后,我门一般会是用pod search AFNetWorking 之类的测试代码来检测CocoaPods是否安装成功,但是很多时候在安装完成后,我们测试会出现如下报错:
[!] Unable to find a pod with name, author, summary, or description matching `AFNetworking`
该报错是一个很常见的错误,但是在搜索解决方法的时候,很多答案都是说删除~/Library/Caches/CocoaPods/search_index.json
但是有雨MacOS系统版本的原因,最新的系统往往这样做并没有用,还是无法解决;
下面是一个有用的解决方法,按照步骤操作即可:
1, pod repo remove master
2, cd ~/.cocoapods/repos
3, git clone --depth 1 https://github.com/CocoaPods/Specs.git master
4, rm ~/Library/Caches/CocoaPods/search_index.json
5, pod search AFNetWorking
希望该方法能帮到大家少入坑,谢谢!
最后
以上就是聪明山水最近收集整理的关于[!] Unable to find a pod with name, author, summary, or description matching `AFNetworking` 报错[!] Unable to find a pod with name, author, summary, or description matching `AFNetworking`的全部内容,更多相关[!]内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复