When running pod repo update the following error is generated:
pod repo update
Updating spec repo `master` [!] Failed to connect to GitHub to update the CocoaPo
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