YogeshChauhan.com
How to uninstall Cocoapods from the Mac OS?
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
dreamhost

Leave a Reply

Most Read

#1 How to set opacity or transparency using CSS? #2 Pagination in CSS with multiple examples #3 How to check if radio button is checked or not using JavaScript? #4 How to make HTML form interactive and using CSS? #5 How to uninstall Cocoapods from the Mac OS? #6 How to add Read More Read Less Button using JavaScript?



Recently Posted

Feb 24 How to modify the latest post array using get_posts() in WordPress? Feb 22 WordPress: How to get ACF field values from another post? Feb 22 WordPress: How to print ACF repeater field values? Feb 22 WordPress: How to print ACF array field values? Feb 21 WordPress: How to get field values in Advanced Custom Fields? Feb 21 WordPress: How to add a Search Icon in Menus with toggle effect using jQuery?



You might also like these

How to make a UILabel clickable in Swift 5?SwiftHow to Use password_hash and password_verify to Secure Your User’s Data (Especially Passwords)?PHPCanvas Drawing in HTML5HTMLHow to show widgets on the Appearance tab in WordPress?WordPressThe SQL EXISTS OperatorSQL/MySQLWhat is XP (Extreme Programming) and When should it be used?MiscHow to add Go Back button in Swift 5?SwiftHow to add onclick event to html elements dynamically using JavaScript?JavaScriptWhat are Conditional Tags in WordPress?WordPressSolution to Could not cast value of type ‘NSTaggedPointerString’ to ‘NSNumber’SwiftSome EASY-to-Understand CSS media query examplesCSSHow to check if the page is the home page in WordPress?WordPress