标签:
Alcatraz插件安装,步骤如下:
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.strings100 85370 100 85370 0 0 2675 0 0:00:31 0:00:31 --:--:-- 20990
2.看到这里就意味已经成功安装了Alcatraz,然后重启Xcode,在Xcode的顶部菜单中Window下找Package Manager,然后就可以下载各种想要的插件了
但是在Xcode6.3的Window下并没有找到Package Manager
解决方法:
1.Find the plugin in ~Library/Application Support/Developer/Shared/Xcode/Plug-ins
2. Open the contents of the pluginOpen the Info.plist in Xcode
3. Expand the DVTPlugInCompatibilityUUIDs array
4. Create a new entry and paste in 9F75337B-21B4-4ADC-B558-F9CADF7073A7
其实就是:
1. 前往文件夹 ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
2. 显示插件的包内容, 编辑Info.plist文件
3. 展开DVTPlugInCompatibilityUUIDs ,添加一个新的item:9F75337B-21B4-4ADC-B558-F9CADF7073A7 (Xcode-6.3)
注:DVTPlugInCompatibilityUUID要对于不同的Xcode版本进行设置,要在终端输入
defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID
来获得对应的DVTPlugInCompatibilityUUID;
Xcode-6.4的DVTPlugInCompatibilityUUID为
7FDF5C7A-131F-4ABB-9EDC-8C5F8F0B8A90
4.重启Xcode,可以看到
如果你选择了skip Bundles,那么你就算重新安装也不会看到了。
这是因为 XCode里面的黑名单机制
在终端输入
defaults delete com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-6.4
再重启XCode,
这次看到上面的提示再选择Load Bundles
就可以了。
标签:
原文地址:http://my.oschina.net/u/2344008/blog/497734