CocoaPods报 CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`错误。
遇到维护老项目的时候,需要pod install,会出现这样的错误,需要更新cocoapod的远程仓库。
解决方法1:
cd 到项目工程中,使用命令如下:
pod update --verbose --no-repo-update如果使用 pod update 会很慢,网络稍微慢一点都有可能失败,最好先在终端
ping www.github.com 查看网络情况
方法2:直接更新cocoapods 本地远程仓库
cd ~/.cocoapods/repos/master
git pull