I cloned a repo from git. Then removed the .git and .gitignore. The podFile looks like
platform :ios, \'6.1\'
pod \'AFNetworking\', \'~>1.3.3\'
pod \'AFO
A bug was found in libgit2 and they had to execute a force push on the specs repo. This is what broke everyone's CocoaPods setup.
You can find the official post about this issue on the CocoaPods blog : http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/
The recommended way to fix your setup is to execute the following commands :
$ pod repo remove master
$ pod setup
If that doesn't work, you can also delete manually all your cached specs :
$ rm -rf ~/.cocoapods/
$ pod setup
As Kirualex worte,you'll find the correct solution on http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/
Short, do the following:
$ pod repo remove master
$ pod setup
You could of course also remove the master as described by the others.
Take a look up the quick fix here ! https://github.com/CocoaPods/Specs/issues/1268
rm -rf ~/.cocoapods/