之前在 Xcode5.1 上面安装过 Alcatraz 插件,今天按照之前的步骤在 Xcode6.3 安装,步骤如下:
1.在终端中输入如下命令行:
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
然后会输出类似这种:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
0 0 0 393 0 0 129 0 --:--:-- 0:00:03 --:--:-- 324
0 0 0 0 0 0 0 0 --:--:-- 0:00:09 --:--:-- 0
30 85370 30 25849 0 0 820 0 0:01:44 0:00:31 0:01:13 4942x Alcatraz.xcplugin/
x Alcatraz.xcplugin/Contents/
x Alcatraz.xcplugin/Contents/Info.plist
x Alcatraz.xcplugin/Contents/MacOS/
x Alcatraz.xcplugin/Contents/Resources/
x Alcatraz.xcplugin/Contents/Resources/en.lproj/
x Alcatraz.xcplugin/Contents/Resources/eye_icon.tiff
x Alcatraz.xcplugin/Contents/Resources/link_icon.tiff
x Alcatraz.xcplugin/Contents/Resources/PluginWindow.nib
x Alcatraz.xcplugin/Contents/Resources/toolbar_colors.tiff
x Alcatraz.xcplugin/Contents/Resources/toolbar_plugins.tiff
x Alcatraz.xcplugin/Contents/Resources/toolbar_templates.tiff
x Alcatraz.xcplugin/Contents/Resources/en.lproj/InfoPlist.strings
x Alcatraz.xcplugin/Contents/Resources/en.lproj/Localizable.strings
100 85370 100 85370 0 0 2675 0 0:00:31 0:00:31 --:--:-- 20990
2.看到这里就意味已经成功安装了 Alcatraz,然后重启 Xcode,在Xcode的顶部菜单中 Window 下找 Package Manager,然后就可以下载各种想要的插件了
但是在 Xcode6.3 的 Window 下并没有找到P ackage Manager,然后我就在网上搜索了一下原因和解决方法
原因我就不再这里赘述了详情点击
解决方法:
- Find the plugin in ~Library/Application Support/Developer/Shared/Xcode/Plugins
- Open the contents of the pluginOpen the Info.plist in Xcode
- Expand the DVTPlugInCompatibilityUUIDs array
- Create a new entry and paste in 9F75337B-21B4-4ADC-B558-F9CADF7073A7
其实就是:
- 进入到插件目录 ~/Library/Application Support/Developer/Shared/Xcode/Plugins
- 显示插件的包内容, 编辑 Info.plist 文件
- 展开 DVTPlugInCompatibilityUUIDs
- 添加一个新的item:9F75337B-21B4-4ADC-B558-F9CADF7073A7 注:UUID要针对不同的Xcode版本进行设置,这里仅针对Xcode6.3**