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 XXX
網(wǎng)上方法天花亂墜,能解決自己問題的才是最好的方法。
這個方法在我這里靠譜,其他的都是講的天花亂墜。

穩(wěn),靠譜