I already have one project working with a podfile.
I wanted to add a Podfile on an old project but I got this error on
sudo pod install
Error:
If you're seeing an error like this, it might be because CocoaPods had to force-push their repo. They suggest:
pod repo remove master
pod setup
From the command line run rm -rf ~/.cocoapods
Then run pod install
again. You shouldn't need the sudo.
This look like it's caused because there was a change to a spec and it's conflicting with running a git pull