YogeshChauhan . com

How to uninstall Cocoapods from the Mac OS?

in Misc 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 uninstall Cocoapods from the Mac OS? #4 How to add Read More Read Less Button using JavaScript? #5 How to Use SQL MAX() Function with Dates? #6 PHP Login System using PDO Part 1: Create User Registration Page

Recently Posted

May 5 Use inline if to make a shorter conditional syntax in React May 4 What is Conditional Rendering in React? May 3 How does @extend rule work in SCSS (Sass)? May 2 How different is Handling Events in React vs HTML DOM? May 2 How to create bouncing balls using HTML canvas and JavaScript? Apr 30 HTML canvas methods

You might also like these

How to create a simple stopwatch using JavaScript?JavaScriptHow to convert an HTML radio buttons into a toggle switch using CSS?CSSThe Difference Between Arrays and Objects in JavaScriptJavaScript4 ways to create Date Objects in JavaScriptJavaScriptRendering Elements in ReactReactHow to show slider value in HTML5 range input using JavaScript?HTMLClean Form Input With These PHP Functions Before Inserting into DatabasePHPUnary Operators in JavaScriptJavaScriptObservation of Human Behavior [Shopping Observation Example]MiscHow to set opacity or transparency using CSS?CSSHow to display modal from bottom to top using CSS and JavaScript?CSSHow to switch dark and light themes using pure CSS?CSS