Cocoapods pod update执行失败报错CocoaPods was not able to update the `master` repo.2019的解决

好久没动pod,最近更新发现:ruby

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`错误。fetch

 

使用命令pod repo update --verbose依然 不行,报一样的错,也检查了gem、pod版本,都没问题this

不过偶然发现多是淘宝镜像的问题:https://ruby.taobao.org,出现过如下报错:spa

Error fetching https://ruby.taobao.org:
bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz)code

 

后来折腾许久,终于解决了,思路就是替换镜像。

blog

一、查看当前镜像it

gem sources -l 

二、因为我这边是淘宝的,就直接移除了ast

gem source -a https://ruby.taobao.org 

三、替换class

gem sources --add https://gems.ruby-china.com

 

经过以上步骤,在执行个人pod update就能够了

date

仅供参考~

相关文章
相关标签/搜索