当报此错误时:是因为Xcode升级导致cocoapods的版本低了,所以需要升级cocoap 1、sudo gem install cocoapods 回车 2、输入密码 3进入自己的文件 pod install