Jack120
Jack120

Reputation: 223

CocoaPods Uninstall

I'm trying to remove an older version of cocoapods. I've used the terminal command:

$ sudo gem uninstall cocoapods

However, afterwards when I type:

$ pod --version

I get 0.22.3 in return.

When I try:

gem list --local | grep cocoapods

nothing is returned.

Thanks for your help.

Upvotes: 1

Views: 3296

Answers (3)

Hugo R
Hugo R

Reputation: 3111

  1. find out where is the pod installed
 which pod
  1. remove the file
  2. remove cocoapod s gem specs from /Library/Ruby/Gems/[VersionNumber]/cocoa*
    sudo rm /Library/Ruby/Gems/[VersionNumber]/cocoapods*
  1. reinstall cocoapods
    sudo gem install cocoapods

Upvotes: 0

MMiroslav
MMiroslav

Reputation: 1762

After $ sudo gem uninstall cocoapods write number from choice ex:

Select gem to uninstall:
 1. cocoapods-0.34.1
 2. cocoapods-0.34.4
 3. cocoapods-0.35.0
 4. cocoapods-0.35.0.rc2
 5. All versions
> 5

It works for me...

Upvotes: 3

Yanick Landry
Yanick Landry

Reputation: 61

This command will tell you where the pod binary is installed :

which pod

You can manually remove it afterwards :

sudo rm -rf <path>

Upvotes: 5

Related Questions