I have a working project the uses a pod file for some weeks now. When I learned that some of my pods have update I tried to \'pod install\' on got this weird error
Just to share my own fix for this issue:
Since this is a git issue, you can use simple git commands to resolve it (See @AdamSharp's post). What worked for me was running
git clean -d -f
in ~/.cocoapods/repos/master. This recursively removes any untracked files and directories from the repo. I encourage you to run:
git clean -d -f --dry-run
Before you actually execute anything so you can see what it would do. Should it break your CocoaPods master repo, simply delete ~/.cocoapods/repos/master and run pod repo update.