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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
In order to delete Carthage installed from:
Carthage.pkg:
$ rm -rf /usr/local/bin/carthage $ sudo rm -rf /Library/Frameworks/CarthageKit.framework
Homebrew:
$ brew uninstall --force carthage
回答2:
To remove carthage installed by brew:
brew uninstall carthage
To remove all versions of carthage installed by brew:
brew uninstall --force carthage
回答3:
If you installed it via Carthage.pkg
you can remove it by using the following commands in terminal:
sudo rm -rf /Library/Frameworks/CarthageKit.framework
unlink carthage
To delete it from Homebrew you just have to do what Alen Liang provided on his answer: