确定gem 版本 sudo gem update —system
确定pod pod update (更新项目podfile)
确定repo 最新 pod repo update 或者 pod repo update —verbose
最后 重新pod setup
重装cocoapods
终端 gem list 查找cocoa 开头配置 全部移除 sudo uninstall cocoapods-xxx
重新安装 cocoapods sudo gem install -n /usr/local/bin cocoapods
重新下载GitHub spec 既 ./cocoapods 目录下repo 文件中的内容 pod setup
删除./cocoapods 目录下repo 文件中所有文件
重新pod setup 或者直接到spec GitHub 地址 直接下载下来更改文件名称为 master 拖进repos 文件目录下,并进入repos git pull
或者是直接pod setup