alcatraz / Alcatraz

Package manager for Xcode
alcatraz.io
MIT License
9.88k stars 1.15k forks source link

Check whether Alcatraz is installed? #470

Closed mattgabor closed 8 years ago

mattgabor commented 8 years ago

Not necessarily an issue but I was wondering if there's a way to check whether Alcatraz is installed? which -s Alcatraz or which -s Alcatraz.xcplugin doesn't work.

guillaumealgis commented 8 years ago

Hi @mattgabor, you can simply check if the Alcatraz.xcplugin exists in Xcode's plugins directory:

test -d ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin

Take note however that it doesn't cover the cases where Alcatraz is installed but not compatible with the current running Xcode version, or where Alcatraz is in Xcode's skipped plugins list.

I encourage you to take a look at https://github.com/alcatraz/Alcatraz/blob/master/Scripts/install.sh to understand how we install Alcatraz. Let me know if you need more info.