1、更新本地库 pod repo update
2、重新安装 sudo gem install cocoapods
3、之前执行pod search 生成了pod_search.json文件,删除rm ~/Library/Caches/CocoaPods/search_index.json
4、升级cocoapods pod setup
1、更新本地库 pod repo update
2、重新安装 sudo gem install cocoapods
3、之前执行pod search 生成了pod_search.json文件,删除rm ~/Library/Caches/CocoaPods/search_index.json
4、升级cocoapods pod setup