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 How to check if radio button is checked or not using JavaScript? #2 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #3 How to add Read More Read Less Button using JavaScript? #4 How to uninstall Cocoapods from the Mac OS? #5 PHP Login System using PDO Part 1: Create User Registration Page #6 How to Use SQL MAX() Function with Dates?

Recently Posted

#Aug 15 Is PHP still good for back-end programming? #Aug 10 How to create a multisite network in WordPress? #Aug 3 How to create a circle that follows a cursor using JavaScript and CSS? #Aug 3 How to make a curtain slider using jQuery and CSS? #Aug 2 How to progressively load images and add a blurry placeholder? #Aug 1 How to create a placeholder loader (throbber) using CSS?
You might also like these
Quick Introduction to 11 Array Iteration Methods in JavaScriptJavaScript@mixin and @include in SCSS (Sass)SCSSWordPress: How to access first and random row values from a repeater field in ACF?WordPressHow to swap images on hover using CSS?CSSUse SwiperJS to create mobile touch sliders fastMiscellaneousWhat does JSX do in React?ReactHow to get category name using post id in WordPress?WordPressHow to animate list items using CSS and JavaScript?CSSWhat is Git?MiscellaneousHow to add CurrencyPipe in TypeScript file in Angular 9 Project?AngularWordPress: How to display fields from ACF Flexible Contents?WordPressHow to make flexbox items of the same size?CSS