Xcode 8无法启动:加载插件失败

我有一个Xcode 8的大问题,无法启动它^ _ ^,我总是得到以下错误:

加载插件失败。

插件或其中一个必备插件可能丢失或损坏,可能需要重新安装。

我正在看日志,我可以看到问题是Python,所以我试图更新Python,重新安装但没有什么不对的T_T

[MT] DVTPlugInLoading:无法加载插件com.apple.dt.dbg.DebuggerLLDB的代码(/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin),错误=错误域= NSCocoaErrorDomain代码= 3587“dlopen_preflight (/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB):未加载库:/System/Library/Frameworks/Python.framework/Versions/2.7/Python
参考自:/Applications/Xcode8b.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB原因:未找到合适的图像。 找到:/System/Library/Frameworks/Python.framework/Versions/2.7/Python:mmap()错误1在地址= 0x11C480000,大小= 0x00171000段= __文本在Segment :: map()映射/系统/库/框架/Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python:mmap()错误1在地址= 0x11C6C0000,size = 0x00171000 segment = __ TEXT in Segment :: map()mapping / Library / Frameworks / Python.framework / Versions / 2.7 / Python /System/Library/Frameworks/Python.framework/Versions/2.7/Python:mmap()错误1 at address = 0x11C900000,size = 0x00171000 segment = __ TEXT in Segment :: map()mapping /System/Library/Frameworks/Python.framework/Versions/2.7/Python“UserInfo = {NSLocalizedFailureReason =捆绑包已损坏或缺少必要的资源。,NSLocalizedRecoverySuggestion =尝试重新安装捆绑包。,NSFilePath = / Applications / Xcode8b .app / Contents / PlugIns / DebuggerLLDB.ideplugin / Contents / MacOS / DebuggerLLDB,NSDebugDescription = dlopen_preflight(/Applications/Xcode8b.app/Contents/P lugIns / DebuggerLLDB.ideplugin / Contents / MacOS / DebuggerLLDB):未加载库:/System/Library/Frameworks/Python.framework/Versions/2.7/Python
参考自:/Applications/Xcode8b.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB原因:未找到合适的图像。 找到:/System/Library/Frameworks/Python.framework/Versions/2.7/Python:mmap()错误1在地址= 0x11C480000,大小= 0x00171000段= __文本在Segment :: map()映射/系统/库/框架/Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python:mmap()错误1在地址= 0x11C6C0000,size = 0x00171000 segment = __ TEXT in Segment :: map()mapping / Library / Frameworks / Python.framework / Versions / 2.7 / Python /System/Library/Frameworks/Python.framework/Versions/2.7/Python:mmap()错误1 at address = 0x11C900000,size = 0x00171000 segment = __ TEXT in Segment :: map()mapping /System/Library/Frameworks/Python.framework/Versions/2.7/Python,NSBundlePath = / Applications / Xcode8b.app / Contents / PlugIns / DebuggerLLDB.ideplugin,NSLocalizedDescription =无法加载捆绑包“DebuggerLLDB”因为它已损坏或缺少必要的资源。},dyldError = dlopen(/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB,0):Li brary not loaded:/System/Library/Frameworks/Python.framework/Versions/2.7/Python
参考自:/Applications/Xcode8b.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB原因:未找到合适的图像。 找到:/System/Library/Frameworks/Python.framework/Versions/2.7/Python:mmap()错误1在地址= 0x11CB40000,大小= 0x00171000段= __文本在Segment :: map()映射/系统/库/框架/Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python:mmap()错误1在地址= 0x11CD80000,size = 0x00171000 segment = __ TEXT in Segment :: map()mapping / Library / Frameworks / Python.framework / Versions / 2.7 / Python /System/Library/Frameworks/Python.framework/Versions/2.7/Python:mmap()错误1 at address = 0x11CFC0000,size = 0x00171000 segment = __ TEXT in Segment :: map()mapping /System/Library/Frameworks/Python.framework/Versions/2.7/Python 2016-06-15 02:05:24.324 Xcode [64100:586329] [MT] DVTAssertions:/ Library / Caches / com中的警告。 apple.xbs / Sources / IDEFrameworks / IDEFrameworks-11160.22 / IDEFoundation / Initialization / IDEInitialization.m:262 Details:Xcode初始插件扫描失败,错误=错误Domain = DVTPlugInErrorDomain Code = 2“加载插件失败。” UserInfo = {DVTPlugInIdentifierErrorKey = com.apple.dt.dbg.DebuggerLLDB,DVTPlugInExecutablePathErrorKey = / Applications / Xcode8b.app / Contents / PlugIns / DebuggerLLDB.ideplugin / Contents / MacOS / DebuggerLLDB,NSLocalizedRecoverySuggestion =插件或其必备插件之一-ins可能丢失或损坏,可能需要重新安装。,DVTPlugInDYLDErrorMessageErrorKey = dlopen(/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB,0):未加载库:/ System /图书馆/框架/ Python.framework /版本/ 2.7 / Python的
参考自:/Applications/Xcode8b.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB原因:未找到合适的图像。 找到:/System/Library/Frameworks/Python.framework/Versions/2.7/Python:mmap()错误1在地址= 0x11CB40000,大小= 0x00171000段= __文本在Segment :: map()映射/系统/库/框架/Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python:mmap()错误1在地址= 0x11CD80000,size = 0x00171000 segment = __ TEXT in Segment :: map()mapping / Library / Frameworks / Python.framework / Versions / 2.7 / Python /System/Library/Frameworks/Python.framework/Versions/2.7/Python:mmap()错误1 at address = 0x11CFC0000,size = 0x00171000 segment = __ TEXT in Segment :: map()mapping /System/Library/Frameworks/Python.framework/Versions/2.7/Python,NSLocalizedDescription =加载插件失败。,NSFilePath = / Applications / Xcode8b.app / Contents / PlugIns / DebuggerLLDB.ideplugin,NSLocalizedFailureReason =无法加载路径“/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin”中的插件“com.apple.dt.dbg.DebuggerLLDB”。 插件或其中一个必备插件可能会丢失或损坏。,NSUnderlyingError = 0x7f97fcc92500 {错误域= NSCocoaErrorDomain代码= 3587“dlopen_preflight(/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/ MacOS / DebuggerLLDB):未加载库:/System/Library/Frameworks/Python.framework/Versions/2.7/Python
参考自:/Applications/Xcode8b.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB原因:未找到合适的图像。 找到:/System/Library/Frameworks/Python.framework/Versions/2.7/Python:mmap()错误1在地址= 0x11C480000,大小= 0x00171000段= __文本在Segment :: map()映射/系统/库/框架/Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python:mmap()错误1在地址= 0x11C6C0000,size = 0x00171000 segment = __ TEXT in Segment :: map()mapping / Library / Frameworks / Python.framework / Versions / 2.7 / Python /System/Library/Frameworks/Python.framework/Versions/2.7/Python:mmap()错误1 at address = 0x11C900000,size = 0x00171000 segment = __ TEXT in Segment :: map()mapping /System/Library/Frameworks/Python.framework/Versions/2.7/Python“UserInfo = {NSLocalizedFailureReason =捆绑包已损坏或缺少必要的资源。,NSLocalizedRecoverySuggestion =尝试重新安装捆绑包。,NSFilePath = / Applications / Xcode8b .app / Contents / PlugIns / DebuggerLLDB.ideplugin / Contents / MacOS / DebuggerLLDB,NSDebugDescription = dlopen_preflight(/Applications/Xcode8b.app/Contents/P lugIns / DebuggerLLDB.ideplugin / Contents / MacOS / DebuggerLLDB):未加载库:/System/Library/Frameworks/Python.framework/Versions/2.7/Python
参考自:/Applications/Xcode8b.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB原因:未找到合适的图像。 找到:/System/Library/Frameworks/Python.framework/Versions/2.7/Python:mmap()错误1在地址= 0x11C480000,大小= 0x00171000段= __文本在Segment :: map()映射/系统/库/框架/Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python:mmap()错误1在地址= 0x11C6C0000,size = 0x00171000 segment = __ TEXT in Segment :: map()mapping / Library / Frameworks / Python.framework / Versions / 2.7 / Python /System/Library/Frameworks/Python.framework/Versions/2.7/Python:mmap()错误1 at address = 0x11C900000,size = 0x00171000 segment = __ TEXT in Segment :: map()mapping /System/Library/Frameworks/Python.framework/Versions/2.7/Python,NSBundlePath = / Applications / Xcode8b.app / Contents / PlugIns / DebuggerLLDB.ideplugin,NSLocalizedDescription =无法加载捆绑包“DebuggerLLDB”因为它已损坏或缺少必要的资源。}}}function:BOOL _IDEInitializePlugInManager(IDEInitializationOptions,NSError * __ autoreleasing *)线程:{number = 1,n ame = main}请在http://bugreport.apple.com上提交此警告消息以及您可以提供的任何有用信息。

目前在我的车里我安装了2.7.11 Python和Python 3.5,但默认版本是2.7.11。

安装两个Python的路径是:

/System/Library/Frameworks/Python.framework/Versions 

仅仅为了记录,Apple说问题与我更新Python的事实有关(虽然我是从官方网站python.org下载的)并且表明Xcode中的8个更能控制XcodeGhost问题。

我必须尝试重新插入2.7.10版本,看看这对我有用。

PS。:我不明白为什么-1这个问题

如果面对

Library not loaded: /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice

尝试此链接中给出的解决方案

https://discussions.apple.com/thread/3863980?start=0&tstart=0

只需双击Xcode 4.3.1 dmg文件…

然后窗口将显示Xcode应用程序。

Right Cick App

显示包装内容

然后转到/Contents/Resources/Packages/

安装那个MobileDevice.pkg ……

安装后

双击Xcode应用程序…

刚看到Xcode准备就绪……

我也有问题,我将Python 2.7的官方版本复制到/System/Library/Frameworks/Python.framework/Versions/2.7/ ,问题就消失了。

尝试删除(将其复制到其他文件夹进行备份)此文件夹中的所有内容:

~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/