10

Is there a way to switch between versions of cocoapods?

This is what I get when I try to remove one:

Select gem to uninstall:
 1. cocoapods-0.29.0
 2. cocoapods-0.34.4
 3. cocoapods-0.35.0
 4. cocoapods-0.36.0
 5. cocoapods-0.37.2
 6. cocoapods-0.38.2
 7. cocoapods-0.39.0
 8. All versions

I just select the number of one I need to uninstall. Is there a way to set current version of cocoapods?

Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358

2 Answers2

7

Install specific version with this command example,

sudo gem install cocoapods -v 0.36.0

Or uninstall all the version , so it will be good if only latest version is available.

check this . how-to-fully-uninstall-the-cocoapods-from-the-mac-machine

and install cocoapod again with sudo gem install cocoapods command.

Check here :- How to install coocapod

Community
  • 1
  • 1
Badal Shah
  • 7,541
  • 2
  • 30
  • 65
3

To get some previous version of cocoapods use this:

sudo gem install -n /usr/local/bin cocoapods -v 1.4.0

Why using -n flag? Read this!

To install pods using 1.4.0 use this:

pod _1.4.0_ install
iWheelBuy
  • 5,470
  • 2
  • 37
  • 71