Open Terminal and run this command that will add the source on master branch on cocoapod repos . $ cd ~/.cocoapods/repos $ git clone https://github.com/CocoaPods/Specs.git master if again issuing already has master branch and it’s not empty and completely remove cocoapod and install from new . How to uninstall cocoapod completely and install new