CocoaPods / CocoaPods-app

A full-featured and standalone installation of CocoaPods.
Other
1.23k stars 282 forks source link

Add option to remove installed Command Line Tools #338

Open Buju77 opened 8 years ago

Buju77 commented 8 years ago

I'm currently using RVM to switch between different Cocoapods versions. And I like my (default) gemset to not have any Cocoapods version installed. Its just to make sure that I don't accidentally use the wrong CP version in our projects without choosing the correct gemset.

But after installing the App's command line tools, my (default) gemset now always has CP 1.0. I tried to uninstall the gems using gem uninstall, but it didn't work. It was also not showing up in gem list. Was also not showing up in global gemset. I was a bit confused until I realized that it must come from the CP App command line tools. Took me a while to figure this out :/

How do I remove the installed command line tools again?

I installed the tools in the first place because I thought the App needs those in order to work. It wasn't clear to me that it doesn't.

orta commented 8 years ago

I think that's a good feature request, I'd like to see a menu item under the Install Command Line Tools that only shows when we have command line tools installed that is Remove Command Line Tools which loops through our known command line tools and removes them.

screen shot 2016-05-18 at 07 17 01

This app is mostly Obj-C and Swift, so you're welcome to take a stab at trying yourself too.

Buju77 commented 8 years ago

I have never worked on a Mac app before but I will check if I can achieve something ;)

wtpisaac commented 8 years ago

Since this isn't in the app yet, is there a way to manually remove the command line tools? I installed them but need them removed now, and I do not know how to do this.

EDIT: I found out how to do this.

Do "which pod" and then navigate to that directory.

Then, remove "pod"

Not entirely sure if the app installs other executables however, this should be checked

orta commented 8 years ago

nope, that's it

Buju77 commented 8 years ago

finally got some time to finish my pull request #344 while watching EURO 2016 finale ⚽ 😃

orta commented 8 years ago

💯 🎉