I am trying to install cocoapods to my MacBook Pro running with OSX 10.9.1 (new Mavericks) and after type gem install cocoapods I get the following error:
gem install cocoapods
I was getting this error and had to completely reinstall cocoapods to fix it. Finally worked. Maybe this solution suits for anyone else.
sudo rm -rf home_folder/.cocoapods/
After that, did again
pod setup
and installed my libraries from zero, and everything worked.
Hope it helps!