Cannot install cocoapods 0.29
navigate this file and delete it
/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/claide-0.3.2/lib/claide
then open ur terminal add this
sudo gem update
its worked for me 100%
Based on your comment
$ type -a podpod is /Users/me/.rvm/gems/ruby-2.0.0-p247/bin/podpod is /Users/me/.rvm/rubies/ruby-2.0.0-p247/bin/podpod is /usr/bin/pod
it appears you have multiple installations of Cocoapods: one with gem install cocoapods
in /Users/me/.rvm/gems/ruby-2.0.0-p247/bin/pod
and another with sudo gem install cocoapods
in /usr/bin/pod
(I don't know what /Users/me/.rvm/rubies/ruby-2.0.0-p247/bin/pod
is).
So running gem install cocoapods
should fix the problem by updating the install in /Users/me/.rvm/gems/ruby-2.0.0-p247/bin/pod
.
I'd recommend cleaning up your install though by removing either the global (with sudo
) one or the local (without sudo
) one.
EDIT:
Here's my Jenkins install:
Installed Cocoapods with gem install cocoapods
.
Running type -a pod
yield:
$ type -a podpod is /Users/Shared/Jenkins/Home/gems/bin/pod
In the Jenkins global config, I added the following environment variables:
GEM_HOME = $JENKINS_HOME/gemsGEM_PATH = $JENKINS_HOME/gems:/usr/lib/ruby/gems/1.8/PATH = $PATH:$HOME/gems/bin
I added a "Shell script" build step to each project with:
POD_PROJECT_DIRECTORY='MyProject' # Directory where the Podfile is. Probably the same as Xcode plugin's "Xcode Project Directory".cd "$WORKSPACE/$POD_PROJECT_DIRECTORY"# rm -rf ./Pods # Uncomment this line if you want to re-download all the Pods each timepod install --no-color
I found the mismatch of version reported by 'pod --version' and what I was seeing when I updated to be mystifying. Then I realized I had more than one ruby installed on my machine. I changed my $PATH so that the ruby I needed to use came first (e.g. /usr/local/opt/ruby/bin):
In a new shell I found that 'pod --version' started reporting the '0.29.0' version I wanted.