pod安裝成功,執行了 init install,執行pod search命令時遇到問題:
[!] Unable to find a pod with name, author, summary, or description matching `bugly`
網上很多刪除search_index文件的,都不行。
步驟:
pod repo remove master
cd ~/.cocoapods/repos
git clone --depth 1 https://github.com/CocoaPods/Specs.git master
rm ~/Library/Caches/CocoaPods/search_index.json
//進去項目工程執行search
pod search bugly
2、結果:
Setup completed
Creating search index for spec repo 'master'.. Done!