查看三方库版本号:cat Podfile.lock
[!] Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please check if you are offline, or that GitHub is down
好长一段时间没动pods,因为苹果说要移除所有UIWebview换成WKWebview,于是执行了下pod update AFNetworking ,更新AFN,然后惊悚的出现了这个报错:

报错图片
试了各种方法都不行,最后发现podfile中的支持的版本太低,支持到8.0

WeChat5cb153343f6e2219e13f7fff45ff5139.png
改成9.0

WeChatd5f2ba19667fb2c49985a0177b674fc2.png
再次执行
pod update AFNetworking
成功更新