我正在使用 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
我总是遇到昨天的错误,但仍然没有找到任何合适的解决方案。
请帮忙。提前致谢。
最佳答案
- Install Homebrew using below command.
/usr/bin/ruby -e "$(curl -fsSL
> https://raw.githubusercontent.com/Homebrew/install/master/install)”
- install ruby using — >
brew install ruby
sudo gem install cocoapods
- Check ruby version —>
ruby --version
which ruby
pod update
关于ios - 无法更新 Pod。总是报错 GitHub is down,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49021445/