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

大量的答案是删除~/Library/Caches/CocoaPods/search_index.json  没有起作用

有用答案:

https://blog.csdn.net/qq_35827461/article/details/89448062

https://www.jianshu.com/p/dbfdece084d5

 

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

posted @ 2020-04-14 21:01  怀达  阅读(10682)  评论(1编辑  收藏  举报