My system contain more than cocoapod version(like cocoapods (1.2.0, 1.1.1, 1.0.1, 1.0.0, 0.39.0, 0.38.2)).I want to switch to 0.39.0 version. How to switch to this specified version?
first remove the current cocoapod version as
sudo gem uninstall cocoapods
and then install the version what you want as
sudo gem install cocoapods -v 0.39.0
You can run install
command by specifying the version of cocoapods . like below .
pod _0.38.2_ install
or
pod _0.39.0_ install
you can also run other command like setup
and other just like above .
I hope this will help you to switch to this specified version of cocopods :)
see this Managing Ruby Tools with Bundler
create a ne textfile called Gemfile
in the same folder as your project
it contains
source 'https://rubygems.org'
gem 'cocoapods', '0.39.0'
you also need to have installed bundler
$ gem install bundler
after that enter the following command in your terminal at the project level
$ bundle install
$ bundle exec pod install
now only the pod version defined in you Gemfile and the pod versions defined in your podfile should be used, not the global ones.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With