ios - 无法更新 Pod。总是报错 GitHub is down

标签 ios xcode cocoapods

我正在使用 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 

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

请帮忙。提前致谢。

最佳答案

  1. Install Homebrew using below command.
/usr/bin/ruby -e "$(curl -fsSL
> https://raw.githubusercontent.com/Homebrew/install/master/install)”
  1. install ruby using — > brew install ruby
  2. sudo gem install cocoapods
  3. Check ruby version —> ruby --version
  4. which ruby
  5. pod update

关于ios - 无法更新 Pod。总是报错 GitHub is down,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49021445/

相关文章:

ios - Swift - 设置 CollectionView 圆角半径

ios - 支持 NFC 和蓝牙的 ISO 14443 智能卡/标签,用于 iPhone 配对

ios - 使用 StoryBoard Reference 时如何获取 UITabBarItem 的图像值?

ios - 如何访问对象库中的复选框、弹出按钮、单选组等

ios - Alamofire 没有这样的模块(CocoaPods)

ios - Kingfisher nil 在展开可选值时

ios - Storyboard中动态大小的 UITextView

ios - Swift/MongoDB 服务器 - 无法读取数据,因为它的格式不正确。

iOS:在 pod 中使用 Segment-Firebase 时构建 Xcode 项目时出错

ios - 在 CocoaPods 0.39.0 上运行 pod update 时发出警告