I know this question is previously asked and I review that asked question answers but still I am facing this error.
[!] Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please check if you are offline, or that GitHub is down
Previously before a week ago pod update command is working fine but now when I run that command it gives me same error everyTime.
I tried below solutions.
- I tried this command with multiple internet connection.
2.
pod repo remove master
pod setup
pod install
3.
$sudo rm -fr ~/.cocoapods/repos/master
$pod setup
$pod install

Finally I found solution from satoshi-iwaki.
This error occurs because
1. Install (or update) Homebrew.
2. Install (or update) OpenSSL.
In the log at the time of installation
opensslbecause the path of the output, in the streetPATHwo.bash_profilesoas to set in.3. Check the version.
/usr/local/opt/openssl/bin/openssl
OpenSSL 1.0.2n 7 Dec 2017
4. Make sure you can access with TLSv 1.2.
gives log like this.
5.Installing Ruby
Since I want to install Ruby separately from Ruby on the system, I install it so that it can be switched rbenv.
6.Check the version of Ruby to install.
gives list of Available versions.
Install Ruby.
Switch the version.
7. Install CocoaPods.
If you want to check pods version
Confirm that pod update ends normally.