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
This worked like magic
$sudo rm -fr ~/.cocoapods/repos/master $pod setup $pod install
Otherwise
$pod setup Ctrl +C cd ~/.cocoapods/repos $git clone --depth 1 https://github.com/CocoaPods/Specs.git master