How to resolve the error CocoaPods: Failed to connect to GitHub in Ionic Ios with Capacitor

Md Riyazuddin Verified
An error can happen on Macs with an old version of openssL and ruby installed since GitHub restricted the allowed cryptographic protocols when accessing repos.
The solution is to update openssl and update ruby:

 - brew install openssl
 - brew upgrade openssl
 - brew install ruby
 - brew link --overwrite ruby

Finally,  make sure your PATH environment variable does not put /usr/local/bin after $PATH, but rather before it.


Comments

Leave a Comment