在更新到Xcode的新版本后,为什么我的Xcode插件(例如clang格式)与Alcatraz一起安装不再有效? [英] Why are my Xcode plugins (such as clang format) installed with Alcatraz no longer working after updating to new version of Xcode?

查看:170
本文介绍了在更新到Xcode的新版本后,为什么我的Xcode插件(例如clang格式)与Alcatraz一起安装不再有效?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天我更新到Xcode 6.3.2并且我无法运行Clang代码格式化 - 它似乎甚至没有安装。每次我更新Xcode,我都必须重新安装恶魔岛和大多数软件包(为什么顺便说一句?)使它们能够在新版本的Xcode上运行。

Today I updated to Xcode 6.3.2 and I can't run the Clang code formatting – it seems like it's not even installed. Everytime I update Xcode, I have to reinstall Alcatraz and most of the packages (why btw?) to make them work on the new version of Xcode.

这次我重新安装所有包(如VVD文件管理器,颜色选择器等),但ClangFormat不起作用 - 它甚至不出现在编辑菜单中。知道为什么吗?

This time I reinstalled all packages (like VVDocumenter, Color picker, etc), but the ClangFormat doesn't work – it doesn't even appear in the "Edit" menu. Any idea why?

btw。我试图重启Xcode以及Mac本身:)

btw. I tried to restart Xcode as well as the Mac itself :)

编辑(解决方案):

Xcode 6.3.x的解决方案(如果这不起作用,请使用下面的常规解决方案。)

在终端中,输入以下内容:

In terminal, enter the following:

find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add 9F75337B-21B4-4ADC-B558-F9CADF7073A7

一般解决方案

通过终端获取新的UUID:

Get the new UUID via the terminal:

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

将新的UUID添加到插件中的DVTPlugInCompatibilityUUIDs键(您的xcplugin文件 - >显示包内容 - > Contents / Info.plist

Add the new UUID to the DVTPlugInCompatibilityUUIDs key in the plugin (your xcplugin file --> show package contents --> Contents/Info.plist

推荐答案

通常,以下内容有帮助:重新安装恶魔岛,重新启动Xcode,卸载并重新安装插件有时候重新启动Xcode会有所帮助。这对我很有帮助。

Oftentimes, the following helps: Re-install Alcatraz, restart Xcode, de-install and re-install your plugin. Sometimes it helps to restart Xcode again. This worked for me.

如果你的插件仍然没有出现,问题可能是新的兼容性密钥Xcode尚未包含在插件兼容键列表中。

If your plugin still does not show up, the problem is probably that the the compatibility key of your new Xcode is not yet included in the list of compatibility keys of your plugin.

可能的解决方案:


  • 等待包含新的Xcode UUID的插件更新

  • 如果您不想等待(例如,如果您安装了Xcode测试版并且插件更新需要很长时间),您可以手动将Xcode的新UUID添加到插件中(详细说明如何操作)这见下文)。当然,无法保证您的插件能够正常运行。如果Xcode已经改变,以至于它实际上不再兼容,那么它当然不会起作用。但是,它通常会起作用。

要将新的UUID添加到插件中:

在终端中,如果您使用Xcode 6.3.2,请输入以下内容:

In terminal, enter the following if you use Xcode 6.3.2:

find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add E969541F-E6F9-4D25-8158-72DC3545A6C6

对于其他版本的Xcode,通过终端获取Xcode的UUID:默认读取/Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID 并使用它来更新UUID在上面的 find 命令中。

For other versions of Xcode, get the UUID of Xcode via the terminal: defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID and use it to update the UUID in the find command above.

[而不是使用 find 命令,你也可以手动将新的UUID添加到插件包中的 DVTPlugInCompatibilityUUIDs 键(你的 xcplugin file - > show package contents - > Contents / Info.plist )]

[Instead of using the find command above, you may also manually add the new UUID to the DVTPlugInCompatibilityUUIDs key in the plugin package (your xcplugin file --> show package contents --> Contents/Info.plist)]

来源: GitHub 并发布 ianmasters

这篇关于在更新到Xcode的新版本后,为什么我的Xcode插件(例如clang格式)与Alcatraz一起安装不再有效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆