When running pod repo update
the following error is generated:
Updating spec repo `master`
[!] Failed to connect to GitHub to update the CocoaPo
I also encountered the same issue. In my scene, i used a mirror repo (hosted elsewhere) of cocoapods specs on github. When i updated the specs repo, it worked!
cd ~/.cocoapods/repos/master
git pull
You can try this:
$sudo rm -fr ~/.cocoapods/repos/master
$pod setup
$pod install
but in my case I had to:
delete the Podfile.lock and then
$pod install
Remove all of cocoapods package. See here for information on how to do this.
Then reinstall cocoapods. $ sudo gem install cocoapods
I was also facing the same problem. I solved it only by accessing two commands from terminal.
sudo gem uninstall nanaimo
and then
sudo gem install nanaimo
Hope so it will help.