Xcode 7.1 中的恶魔岛

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33342969/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:06:47  来源:igfitidea点击:

Alcatraz in Xcode 7.1

iosxcodexcode7.1alcatraz

提问by Ryan Heitner

Note that from Xcode 8 Alcatraz no longer worksEditor Extension Tutorial

请注意,从 Xcode 8 Alcatraz 不再有效编辑器扩展教程



I am unable to install Alcatraz for Xcode 7.1

我无法为 Xcode 7.1 安装 Alcatraz

According to their twitter feed Alcatraz should work with Xcode 7.1. I have tried uninstalling and reinstalling.

根据他们的 twitter 提要 Alcatraz 应该可以与 Xcode 7.1 一起使用。我已经尝试卸载并重新安装。

I used the recommended install of

我使用了推荐的安装

curl -fsSL https://raw.githubusercontent.com/supermarin/Alcatraz/deploy/Scripts/install.sh | sh

Could it be related to the fact I also have Xcode 6.4 installed?

这可能与我还安装了 Xcode 6.4 的事实有关吗?

enter image description here

在此处输入图片说明

回答by Ryan Heitner

@Mopr answer will possibly resolve, but did not work for me. I got a more complete answer from Enisto Pino Alcatraz issue 352Which I am reposting here

@Mopr 答案可能会解决,但对我不起作用。我从 Enisto Pino Alcatraz 问题 352 中得到了更完整的答案,我在这里重新发布

1) Close Xcode

1)关闭Xcode

2) Remove previous defaults for Xcode 7.0

2) 删除 Xcode 7.0 以前的默认值

defaults delete com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-7.0

3) Uninstall Alcatraz

3) 卸载恶魔岛

rm -rf ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin

4) Remove all packages installed via Alcatraz

4) 删除所有通过 Alcatraz 安装的包

rm -rf ~/Library/Application\ Support/Alcatraz/

5) Update the DVTPlugInCompatibilityUUID to the 7.1 in the plists of plugins:

5) 将插件plists中的DVTPlugInCompatibilityUUID更新为7.1:

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

6)重置Xcode选择

sudo xcode-select --reset

7) Open Xcode

7)打开Xcode

8) Install Alcatraz

8) 安装恶魔岛

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

9) Restart Xcode

9) 重启Xcode

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

10) 在 Xcode 启动的对话框中选择“Load Bundles”。

回答by Manny

I did the same as Ryan suggested and it didn't work. Then I realized his has:

我按照瑞安的建议做了同样的事情,但没有奏效。然后我意识到他有:

defaults delete com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-7.0

默认删除 com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-7.0

Since I am on 7.1 I changed it to

由于我在 7.1 上,我将其更改为

defaults delete com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-7.1

P.S. I would make this a comment but I'm too much of a noob to make comments 3;(

PS我会把它作为评论,但我太菜了,无法发表评论3;(

回答by Морт

I had the same issue with 7.1 and just reinstalling Alcatraz didn't help. I also have XCode 6.4, which may be related. I found the solution here - https://github.com/supermarin/Alcatraz/issues/352

我在 7.1 上遇到了同样的问题,只是重新安装 Alcatraz 没有帮助。我也有 XCode 6.4,可能是相关的。我在这里找到了解决方案 - https://github.com/supermarin/Alcatraz/issues/352

As mentioned by welsonla, you have to exit XCode and enter in terminal

正如welsonla所提到的,你必须退出 XCode 并进入终端

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

then

然后

sudo xcode-select --reset

I also uninstalled Alcatraz before that and reinstalled it after, just in case.

在那之前我还卸载了 Alcatraz 并在之后重新安装,以防万一。

回答by Abhishek Bedi

I moved Alcatraz.xcplugin outside from the plug-in folder. Opened Xcode, then quit. Later I moved back into the plug-in folder and reopened Xcode. It asked me whether to load bundles, just hit load and it loaded. [github.com/supermarin/Alcatraz/issues/359]

我将 Alcatraz.xcplugin 从插件文件夹移到外面。打开Xcode,然后退出。后来我移回插件文件夹并重新打开Xcode。它问我是否加载包,只需点击加载并加载。[github.com/supermarin/Alcatraz/issues/359]