Xcode7.1 插件失效的解决方法

之前Xcode7.0的时候使用Alcatraz来管理插件,升级7.1后就失效了,其他通过Alcatraz安装的插件也都不能用了。google了解决方法:

1) Close Xcode

2) Remove previous defaults for Xcode 7.0

defaults delete com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-7.0
3) Uninstall Alcatraz

rm -rf ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin
4) Remove all packages installed via Alcatraz

rm -rf ~/Library/Application\ Support/Alcatraz/
5) Update the DVTPlugInCompatibilityUUID to the 7.1 in the plists of plugins:

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\ 7.1.app/Contents/Info DVTPlugInCompatibilityUUID
6) Reset Xcode select

sudo xcode-select --reset
7) Open Xcode

8) Install Alcatraz

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

10) Select "Load Bundles" in dialog box at Xcode start.

2016-03-24 update:
升级了 xcode7.3 又是插件失效。

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.plist DVTPlugInCompatibilityUUID`

在关闭 xcode,执行这个命令后,会提示发现已有的插件,点击“load Bundles”后重新加载,就可恢复正常

参考资料:Alcatraz in XCode 7.1

2015-11-26 14:144