升级到Xcode6使用不了以前的插件

升级到Xcode6使用不了以前的插件(VVDocumenter、KSImageNamed、Alcatraz)解决:

1)到Xcode安装插件的路径下: library/Application Support/Developer/Shared/Xcode/Plug-ins
2)右键点击插件,查看包内容,打开info.plist 文件,找到DVTPlugInCompatibilityUUIDs,点击+号添加: C4A681B0-4A26-480E-93EC-1218098B9AA0
3)保存文件,重启Xcode

No Need to repeat for all plugins that are already installed to Xcode 6.

或者使用命令行: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

相关链接:http://joeshang.github.io/2015/04/10/fix-xcode-upgrade-plugin-invalid/

Xcode7

升级到Xcode7后又用不了了,上面的步骤也不管用,原因是是新的xCode的UUID没有在插件的配置文件中注册进去。在网上找了一位大神的使用命令行的解决方案,记录如下:

  1. 得到Xcode的UUID:

defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID

  1. 循环插入UUID:
    find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/ -name Info.plist -maxdepth 3| xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add '0420B86A-AA43-4792-9ED0-6FE0F2B16A13'

  2. 重启Xcode,会跳出一个弹框,选择loadBoundle就·

你可能感兴趣的:(升级到Xcode6使用不了以前的插件)