Iam trying to install cocoa pods in a xcode project, but when doing:
$ pod install
I get the following error:
Setting up Co
This is what worked for me.
Uninstall CocoaPods (choose to uninstall all versions):
sudo gem uninstall cocoapods
Remove old master repo:
sudo rm -fr ~/.cocoapods/repos/master
Install CocoaPods without sudo
:
gem install --user-install cocoapods
Setup CocoaPods and Master repo:
pod setup
NOTE: Step 3 is going to make sure you install pod under your user name instead of root which sudo
does.