This is the short version:
When I run
pod install
in an Xcode project I get
[!] Pod::Executable pull erro
Removing the directories worked for me:
sudo rm -R ~/Library/Caches/CocoaPods sudo rm -R ~/.cocoapods/repos
If some other problems still exist.
Remove the Pods directory and the podFile.lock file.
Cocoapods just adds the directories again.