Yogesh Chauhan's Blog

How to uninstall Cocoapods from the Mac OS?

in Miscellaneous on March 4, 2020

Step 1: Check the different version(s) of Cocoapods installed on your Mac using following command.

gem list --local | grep cocoapods

The output will look like this:

cocoapods (1.9.0)
cocoapods-core (1.9.0)
cocoapods-deintegrate (1.0.4)
cocoapods-downloader (1.3.0)
cocoapods-plugins (1.0.0)
cocoapods-search (1.0.0)
cocoapods-stats (1.1.0)
cocoapods-trunk (1.4.1)
cocoapods-try (1.1.0)

Step 2: Remove one by one using following command.

gem uninstall [name of the cocoapod]

gem uninstall cocoapods
gem uninstall cocoapods-core
gem uninstall cocoapods-deintegrate

If the terminal tells you that you don’t have permission to remove it then use “sudo” in command.

sudo gem uninstall [name of the cocoapod]

sudo gem uninstall cocoapods
sudo gem uninstall cocoapods-core
sudo gem uninstall cocoapods-deintegrate

For multiple version specify the version to be removed.

gem uninstall cocoapods -v 0.20.2

Step 3: Finally, remove residual artifacts using following command.

rm -rf ~/.cocoapods

Most Read

#1 Solution to the error “Visual Studio Code can’t be opened because Apple cannot check it for malicious software” #2 How to add Read More Read Less Button using JavaScript? #3 How to check if radio button is checked or not using JavaScript? #4 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #5 How to uninstall Cocoapods from the Mac OS? #6 PHP Login System using PDO Part 1: Create User Registration Page

Recently Posted

#Apr 8 JSON.stringify() in JavaScript #Apr 7 Middleware in NextJS #Jan 17 4 advanced ways to search Colleague #Jan 16 Colleague UI Basics: The Search Area #Jan 16 Colleague UI Basics: The Context Area #Jan 16 Colleague UI Basics: Accessing the user interface
You might also like these
Is Software Really Eating The World? I don’t think soMiscellaneousHow to remove border from :visited image, link or button?CSSHow to install PuTTY on a MacOS?MiscellaneousHow to create Flickering Texts using CSS?CSSArray.from() Method in JavaScriptJavaScriptUNION and UNION ALL in PostgresPostgresHow to create a Progress Bar using JavaScript?JavaScriptFor Each Loop in Swift for BeginnersSwiftWhat are components in Angular?AngularHow to link/add CSS file to HTML Document?CSSHow to send and receive query strings via links in Angular 9?AngularThe Types of DatabasesMiscellaneous