Cocoapods: Can鈥檛 use CocoaPods 1.0.0.beta.1, the pod command is still loading the previous version

Created on 31 Dec 2015  路  10Comments  路  Source: CocoaPods/CocoaPods

I just installed CocoaPods 1.0.0.beta.1 with gem install cocoapods --pre but I can鈥檛 use it. When I run the pod command it keeps using version 0.39.0

Not sure if it鈥檚 a CocoaPods issue or a RubyGems issue.

$ gem install cocoapods --pre
Fetching: claide-1.0.0.beta.1.gem (100%)
Successfully installed claide-1.0.0.beta.1
Fetching: cocoapods-core-1.0.0.beta.1.gem (100%)
Successfully installed cocoapods-core-1.0.0.beta.1
Fetching: cocoapods-deintegrate-1.0.0.beta.1.gem (100%)
Successfully installed cocoapods-deintegrate-1.0.0.beta.1
Fetching: cocoapods-downloader-1.0.0.beta.1.gem (100%)
Successfully installed cocoapods-downloader-1.0.0.beta.1
Fetching: cocoapods-plugins-1.0.0.beta.1.gem (100%)
Successfully installed cocoapods-plugins-1.0.0.beta.1
Fetching: cocoapods-search-1.0.0.beta.1.gem (100%)
Successfully installed cocoapods-search-1.0.0.beta.1
Fetching: cocoapods-stats-1.0.0.beta.1.gem (100%)
Successfully installed cocoapods-stats-1.0.0.beta.1
Fetching: cocoapods-trunk-1.0.0.beta.1.gem (100%)
Successfully installed cocoapods-trunk-1.0.0.beta.1
Fetching: cocoapods-try-1.0.0.beta.1.gem (100%)
Successfully installed cocoapods-try-1.0.0.beta.1
Fetching: fourflusher-0.3.0.gem (100%)
Successfully installed fourflusher-0.3.0
Fetching: molinillo-0.4.1.gem (100%)
Successfully installed molinillo-0.4.1
Fetching: xcodeproj-1.0.0.beta.2.gem (100%)
Successfully installed xcodeproj-1.0.0.beta.2
Fetching: cocoapods-1.0.0.beta.1.gem (100%)
Successfully installed cocoapods-1.0.0.beta.1
Parsing documentation for claide-1.0.0.beta.1
Installing ri documentation for claide-1.0.0.beta.1
Parsing documentation for cocoapods-core-1.0.0.beta.1
Installing ri documentation for cocoapods-core-1.0.0.beta.1
Parsing documentation for cocoapods-deintegrate-1.0.0.beta.1
Installing ri documentation for cocoapods-deintegrate-1.0.0.beta.1
Parsing documentation for cocoapods-downloader-1.0.0.beta.1
Installing ri documentation for cocoapods-downloader-1.0.0.beta.1
Parsing documentation for cocoapods-plugins-1.0.0.beta.1
Installing ri documentation for cocoapods-plugins-1.0.0.beta.1
Parsing documentation for cocoapods-search-1.0.0.beta.1
Installing ri documentation for cocoapods-search-1.0.0.beta.1
Parsing documentation for cocoapods-stats-1.0.0.beta.1
Installing ri documentation for cocoapods-stats-1.0.0.beta.1
Parsing documentation for cocoapods-trunk-1.0.0.beta.1
Installing ri documentation for cocoapods-trunk-1.0.0.beta.1
Parsing documentation for cocoapods-try-1.0.0.beta.1
Installing ri documentation for cocoapods-try-1.0.0.beta.1
Parsing documentation for fourflusher-0.3.0
Installing ri documentation for fourflusher-0.3.0
Parsing documentation for molinillo-0.4.1
Installing ri documentation for molinillo-0.4.1
Parsing documentation for xcodeproj-1.0.0.beta.2
Installing ri documentation for xcodeproj-1.0.0.beta.2
Parsing documentation for cocoapods-1.0.0.beta.1
Installing ri documentation for cocoapods-1.0.0.beta.1
Done installing documentation for claide, cocoapods-core, cocoapods-deintegrate, cocoapods-downloader, cocoapods-plugins, cocoapods-search, cocoapods-stats, cocoapods-trunk, cocoapods-try, fourflusher, molinillo, xcodeproj, cocoapods after 7 seconds
13 gems installed

$ echo $PATH
/Users/0xced/.gem/bin:/usr/local/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin

$ which pod
/Users/0xced/.gem/bin/pod

$ pod --version
0.39.0

$ ls /Users/0xced/.gem/gems/ | grep cocoapods
cocoapods-0.38.2
cocoapods-0.39.0
cocoapods-1.0.0.beta.1
cocoapods-core-0.38.2
cocoapods-core-0.39.0
cocoapods-core-1.0.0.beta.1
cocoapods-deintegrate-1.0.0.beta.1
cocoapods-dependencies-0.5.1
cocoapods-dependencies-0.5.2
cocoapods-downloader-0.9.1
cocoapods-downloader-0.9.3
cocoapods-downloader-1.0.0.beta.1
cocoapods-expert-difficulty-1.0.0
cocoapods-plugins-0.4.2
cocoapods-plugins-1.0.0.beta.1
cocoapods-search-0.1.0
cocoapods-search-1.0.0.beta.1
cocoapods-stats-0.5.3
cocoapods-stats-0.6.1
cocoapods-stats-0.6.2
cocoapods-stats-1.0.0.beta.1
cocoapods-testing-0.2.0
cocoapods-trunk-0.6.1
cocoapods-trunk-0.6.4
cocoapods-trunk-1.0.0.beta.1
cocoapods-try-0.4.5
cocoapods-try-0.5.1
cocoapods-try-1.0.0.beta.1

Most helpful comment

This is a rubygems issue @Maheepk -- you can use pod _1.0.0.beta.6_ --version for now, or update to RubyGems 2.6.3.

All 10 comments

Interesting, I wonder if this is rubygems prioritising released versions over pre-releases in their resolving. I'm pretty sure there's a way to say which version of a command you want in the command, but I can't find the docs for this yet.

It used to work fine with pre-release of 0.3x versions, but I did not have a sudo-less gem installation. I wonder if it鈥檚 because of version 1.x or if my gem setup is broken.

I can workaround this issue by running

$ pod _1.0.0.beta.1_ --version
1.0.0.beta.1

Stack Overflow to the rescue once again! How can I call an older version of a gem from the commandline?

It's possible that you've updated your rubygems gem since then, which may include mollinillo which could cause this, at a guess

Nah. Running pre-release binaries without specifying the version used to be broken in older RubyGems versions, I just fixed it recently.

I also installed CocoaPods 1.0.0.beta.6 with gem install cocoapods --pre but I can鈥檛 use it. When I run the pod command it keeps using version 0.39.0

$ gem install cocoapods --pre
Successfully installed cocoapods-1.0.0.beta.6
1 gem installed

then i used:-

$ pod --version
0.39.0

I don't know how can i use _1.0.0.beta.6_

thanks,

This is a rubygems issue @Maheepk -- you can use pod _1.0.0.beta.6_ --version for now, or update to RubyGems 2.6.3.

The issue for me was that I had two ruby installations, the OS X one and ruby 2.2 that I had installed through MacPorts. After uninstalling ruby 2.2 from MacPorts and reinstalling all my gems, I was able to use the 1.0.0.beta version without having to explicitly specify the the version.

Yes, i upgraded my ruby version now it works for me. thanks @segiddins :)

Remove old gem versions
RubyGems keeps old versions of gems, so feel free to do some cleaning after updating:

$ gem cleanup

Was this page helpful?
0 / 5 - 0 ratings

Related issues

luhui picture luhui  路  3Comments

gerchicov-bp picture gerchicov-bp  路  3Comments

steffendsommer picture steffendsommer  路  3Comments

spencerkohan picture spencerkohan  路  3Comments

soleares picture soleares  路  3Comments