Problem
See this error when running pod outdated.Updating spec repo `master`
[!] Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please check if you are offline, or that GitHub is down
Root Cause
This is because "weak cryptographic standards removed" after 2018 February.How to Upgrade
Follow the steps bycocoapods-failed-to-connect-to-github-to-update-the-cocoapods-specs-specs-repo
Run these series of steps to update openssl, then ruby, then cocoapods.
- Update brew
- Use brew to install latest openssl 2.5.1
- Use brew to install : brew install rbenv ruby-build
- Use rbenv to install ruby 2.5.1: rbenv install 2.5.1
- Use rbenv to set ruby version used : rbenv global 2.5.0
- Use rbenv to check ruby version: ruby --version
- Use gem to install cocoapods: gem install cocoapods -n /usr/local/bin
- Check cocoapods version : pod --version
Use rbenv to install ruby 2.3.7
Run these commands:- Run: rbenv install 2.3.7
- Set the ruby version using: export RBENV_VERSION=2.3.7
No comments:
Post a Comment