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

僅供參考~

相關文章
相關標籤/搜索