转载自:http://blog.csdn.net/zhangao0086/article/details/44196415
对还没有支持Xcode 6.2的插件有效,Alcatraz 的新版已经支持。
- 进入到插件目录 ~/Library/Application Support/Developer/Shared/Xcode/Plugins
- 显示插件的包内容
- 编辑Info.plist文件
- 展开DVTPlugInCompatibilityUUIDs
- 添加一个新的item:A16FF353-8441-459E-A50C-B071F53F51B7
对于Xcode 6.3,使用这个UUID:9F75337B-21B4-4ADC-B558-F9CADF7073A7
其实就是 /Applications/Xcode.app/Contents/Info 里边的 DVTPlugInCompatibilityUUID
分享一个批量更新插件的 DVTPlugInCompatibilityUUID 的命令:
<code class="hljs lasso has-numbering" style="display: block; padding: 0px; color: inherit; box-sizing: border-box; font-family: 'Source Code Pro', monospace;font-size:undefined; white-space: pre; border-radius: 0px; word-wrap: normal; background: transparent;">find ~/Library/Application<span class="hljs-subst" style="color:#000000;box-sizing: border-box;">\</span> Support/Developer/Shared/Xcode/Plug<span class="hljs-attribute" style="box-sizing: border-box;">-ins</span> <span class="hljs-attribute" style="box-sizing: border-box;">-name</span> Info<span class="hljs-built_in" style="color:#66066;box-sizing: border-box;">.</span>plist <span class="hljs-attribute" style="box-sizing: border-box;">-maxdepth</span> <span class="hljs-number" style="color:#06666;box-sizing: border-box;">3</span> <span class="hljs-subst" style="color:#000000;box-sizing: border-box;">|</span> xargs <span class="hljs-attribute" style="box-sizing: border-box;">-I</span>{} defaults write {} DVTPlugInCompatibilityUUIDs <span class="hljs-attribute" style="box-sizing: border-box;">-array</span><span class="hljs-attribute" style="box-sizing: border-box;">-add</span> <span class="hljs-string" style="color:#0880;box-sizing: border-box;">`defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID`</span></code><ul class="pre-numbering" style="box-sizing: border-box; position: absolute; width: 50px; top: 0px; left: 0px; margin: 0px; padding: 6px 0px 40px; border-right-width: 1px; border-right-style: solid; border-right-color: rgb(221, 221, 221); list-style: none; text-align: right; background-color: rgb(238, 238, 238);"><li style="box-sizing: border-box; padding: 0px 5px;">1</li></ul>