How to uninstall Carthage from OS X?

Van Du Tran picture Van Du Tran · Sep 29, 2016 · Viewed 11.4k times · Source

Somehow, my Carthage installation is corrupted (seems like I have two versions installed) due to the fact that I installed using the Carthage.pkg file then also with brew install carthage. I'd like to completely remove Carthage(s) but can't find the way to do so.

Answer

Andrea Mugnaini picture Andrea Mugnaini · Dec 31, 2017

In order to delete Carthage installed from:

  1. Carthage.pkg:

    $ rm -rf /usr/local/bin/carthage
    $ sudo rm -rf /Library/Frameworks/CarthageKit.framework
    
  2. Homebrew:

    $ brew uninstall --force carthage