嘗試刪除~/Library/Caches/CocoaPods/search_index.json重新pod search無效
總是提示:
$ pod search AFNetworking
Setup completed
[!] Unable to find a pod with name, author, summary, or description matching `AFNetworking`
處理方式:
pod setup
的就是將https://github.com/CocoaPods/Specs.git的代碼下載到~/.cocoapods/repos/master
,我發(fā)現(xiàn)我本地就沒有~/.cocoapods/repos
目錄吴菠,然后創(chuàng)建了該目錄mkdir -p ~/.cocoapods/repos/
接著進行以下操作
$ 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
$ pod search afnetworking