1.使用如下的命令行来安装Alcatraz:(使用前关闭xcode)
mkdir -p ~/Library/Application\ Support/\
Developer/Shared/Xcode/Plug-ins;
curl -L http://git.io/lOQWeA |\
tar xvz -C ~/Library/Application\ Support/\
Developer/Shared/Xcode/Plug-ins
or
mkdir -p ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins
curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh
2.打开Xcode, 如果在Xcode----Windows里没有 package manager则继续第3条。
3.查看你当前Xcode当前的UUID, 然后再终端输入 :
defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID
4.找到刚刚安装的插件目录(第1条的目录), 然后右键Alcatraz.xcplugin显示包内容,然后找到 /contents/info.plist
找到“DVTPlugInCompatibilityUUIDs”这一项(没有则进行添加), 输入刚刚第3条得到的UUID。
5.再打开XCODE目录:
/Applications/Xcode.app/Contents/MacOS
双击黑色的XCODE,会打开终端窗口, 最后打印“进程已完成”之类, 重启Xcode即可