How to uninstall CocoaPods on a Mac
Remove CocoaPods installed with Homebrew or as a Ruby gem, and the specs repository and cache it keeps in your home folder.
How do I uninstall CocoaPods on a Mac?
Check how it was installed with which -a pod:
- Homebrew (
/opt/homebrew/bin/pod):brew uninstall cocoapods. Ours, 1.16.2, was 23 MB. - Ruby gem:
gem list --local | grep cocoapods, thengem uninstall cocoapodsand eachcocoapods-gem it lists.
What does CocoaPods leave behind?
~/.cocoapods: the specs repository, 16 MB on our Mac.~/Library/Caches/CocoaPods: downloaded pods.- In each project: the
Podsfolder,Podfile.lockand the.xcworkspaceCocoaPods made.
More: CocoaPods taking up space. If CocoaPods came with Homebrew's Ruby, see uninstall Ruby.
Common questions
How do I uninstall CocoaPods on Mac?
brew uninstall cocoapods, or gem uninstall cocoapods for a gem install. Then remove ~/.cocoapods and ~/Library/Caches/CocoaPods.
How do I remove CocoaPods from a project?
Run pod deintegrate in the project folder, then delete the Podfile and the workspace CocoaPods created.