3

I am using pod --version 1.3.1, OS: macOS Sierra (10.12.6)

when I am trying to update pod using the command:

$ 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 

I am always getting above error from yesterday and still not found any proper solution.

Please help. Thanks in advance.

Asif Raza
  • 836
  • 12
  • 29
  • Check this [Thread](https://github.com/CocoaPods/CocoaPods/issues/7447#issuecomment-368245483) – Imad Ali Feb 28 '18 at 03:46
  • reinstall pod https://stackoverflow.com/questions/38993527/cocoapods-failed-to-connect-to-github-to-update-the-cocoapods-specs-specs-repo – roy Feb 28 '18 at 06:23
  • I installed first brew using /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" then pod install. works for me. Thanks. – Asif Raza Feb 28 '18 at 07:12
  • make sure you have the most recent software – Nol4635 Feb 28 '18 at 13:25

1 Answers1

1
  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
MAhipal Singh
  • 4,745
  • 1
  • 42
  • 57