【问题标题】:Not able to update pod. Always getting error GitHub is down无法更新 pod。总是出错 GitHub 已关闭
【发布时间】:2018-02-28 03:20:15
【问题描述】:

我正在使用pod --version 1.3.1,操作系统:macOS Sierra (10.12.6)

当我尝试使用命令更新 pod 时:

$ pod update
Update all pods
Updating local specs repositories
[!] Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please check if you are offline, or that GitHub is down 

我总是从昨天开始克服错误,但仍然没有找到任何合适的解决方案。

请帮忙。提前致谢。

【问题讨论】:

标签: ios xcode cocoapods


【解决方案1】:
  1. 使用以下命令安装Homebrew
/usr/bin/ruby -e "$(curl -fsSL
> https://raw.githubusercontent.com/Homebrew/install/master/install)”
  1. 安装 ruby​​ 使用 --> brew install ruby
  2. sudo gem install cocoapods
  3. 检查 ruby​​ 版本 —> ruby --version
  4. which ruby
  5. pod update

【讨论】:

    猜你喜欢
    • 2016-12-17
    • 2022-11-28
    • 2012-09-13
    • 2017-04-27
    • 2021-10-13
    • 1970-01-01
    • 1970-01-01
    • 2020-08-30
    • 1970-01-01
    相关资源
    最近更新 更多