大量的答案是刪除~/Library/Caches/CocoaPods/search_index.json 沒有起做用git
有用答案:github
https://blog.csdn.net/qq_35827461/article/details/89448062json
https://www.jianshu.com/p/dbfdece084d5.net
1, pod repo remove masterblog
2, cd ~/.cocoapods/reposrem
3, git clone --depth 1 https://github.com/CocoaPods/Specs.git masterget
4, rm ~/Library/Caches/CocoaPods/search_index.jsonit
5, pod search afnetworking
ast