Xcode 6.1:加载插件失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28064802/
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
Xcode 6.1: Loading a plug-in failed
提问by RawanMM
I updated Xcode from AppStore but I couldn't open it due to this error message:
"Loading a plug-in failed
The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled"
I tried uninstalling Xcode by deleting it from Application folder and reinstall it but the problem is still the same.
Can anyone figure out what's wrong, and how to fix this? Thank you.
我从 AppStore 更新了 Xcode,但由于此错误消息而无法打开它:
“加载插件失败
插件或其必备插件之一可能丢失或损坏,可能需要重新安装”
我尝试通过从应用程序文件夹中删除它来卸载 Xcode 并重新安装它,但问题仍然存在。
任何人都可以弄清楚出了什么问题,以及如何解决这个问题?谢谢你。
回答by Erion S
Did you by any chance update your Python? Anyway, I did and I think I also removed python 2.7 for some reason. Turns out, Xcode uses python 2.7 and is required for Xcode 6.0 onwards.
你有没有机会更新你的Python?无论如何,我做到了,我想我也出于某种原因删除了 python 2.7。事实证明,Xcode 使用 python 2.7,并且是 Xcode 6.0 及更高版本所必需的。
Simply download python 2.7, install it and all should be good.
只需下载python 2.7,安装它,一切都会好起来的。
回答by Pawe? Go?cicki
I have run into the exact same issue with XCode 6.3 and brew upgrade python
to version 2.7.10.
我在 XCode 6.3 和brew upgrade python
2.7.10 版本中遇到了完全相同的问题。
For whatever reason the symlinks at /System/Library/Frameworks/Python.framework/Versions/
were not updated...
无论出于何种原因,符号链接/System/Library/Frameworks/Python.framework/Versions/
都没有更新......
The fix:
修复:
sudo rm -f /System/Library/Frameworks/Python.framework/Versions/2.7
sudo ln -s /usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7 /System/Library/Frameworks/Python.framework/Versions/2.7
sudo rm -f /System/Library/Frameworks/Python.framework/Versions/Current
sudo ln -s /usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7 /System/Library/Frameworks/Python.framework/Versions/Current
(obviously your paths/versions might differ)
(显然您的路径/版本可能不同)
And then XCode starts working again.
然后 XCode 再次开始工作。
回答by Matt Zukowski
For me the problem had to do with a missing iTunes.app. I had previously deleted iTunes, but it turns out that Xcode 9 (and possibly Xcode 8) needs the iTunes.app, and will fail with the mysterious "Loading a plug-in failed" error if iTunes is missing on your system.
对我来说,问题与缺少 iTunes.app 有关。我之前删除了 iTunes,但事实证明 Xcode 9(可能还有 Xcode 8)需要 iTunes.app,如果您的系统上缺少 iTunes,将会出现神秘的“加载插件失败”错误。
Downloading and installing iTunes from https://www.apple.com/ca/itunes/download/solved the issue for me.
从https://www.apple.com/ca/itunes/download/下载和安装 iTunes为我解决了这个问题。
By the way, you may be able to get more info about what's causing the plug-in error by running xcodebuild
on the command line.
顺便说一下,您可以通过xcodebuild
在命令行上运行来获取有关导致插件错误的原因的更多信息。