一、说明:

Alcatraz 是一款 Xcode的插件管理工具,可以用来管理XCode的 插件、模版以及颜色配置的工具。

二、安装

1.github地址:https://github.com/alcatraz/Alcatraz

2.安装方法

方法一:在命令行中输入如下指令:curl -fsSL https://raw.github.com/alcatraz/Alcatraz/master/Scripts/install.sh | sh

图示:

注意:在安装的过程中需要先把XCode退出,等安装完成之后重新打开XCode。打开之后,会弹窗如下图所示,选择load bunble。

此时打开XCode可以检查是否安装成功。

方法二:通过上面的github地址下载Alcatraz并command +r运行,完成后command+q退出XCode重启。注意需要检查XCode偏好设置如下:

三、使用

1.如何使用Alcatraz来安装插件

Alcatraz安装成功后,选择Window->package Manager,会打开Alcatraz的工作窗口。假设我们需要安装的VVDocumenter-Xcode插件,那么在搜索框中直接搜索VVDocumenter-Xcode即可。搜索完成之后界面显示如下。

点击INSTALL即可安装该插件,插件安装完成之后。显示如下,INSTALL按钮变成REMOVE按钮。

command+q把XCode退出,重新打开,选择下图中的load bundle按钮,到此VVDocumenter-Xcode就已经安装好了,可以直接使用。

  

2.如何使用Alcatraz来卸载插件

  我们可以通过Alcatraz来查看当前XCode中集成了哪些插件。如果要卸载相关插件非常简单,点击插件左边的Remove按钮即

可。

 

四、如何卸载

  命令行输入:rm -rf ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin

 

五、Xcode7安装遇到问题

第一步:关闭 Xcode。

第二步:卸载,运行命令:

rm -rf ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin

第三步:最关键的一步,运行命令:

find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID sudo xcode-select --reset

第四步:重新安装 Alcatraz。

curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh