Xcode 8 无法启动:加载插件失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37824143/
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 8 doesn't Start: Loading a plug-in failed
提问by WhiteTiger
I have a big problem with Xcode 8, can not get it to start ^ _ ^, I always get the following error:
我的Xcode 8有一个大问题,无法启动^ _ ^,我总是收到以下错误:
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 am looking at the logs I could see that the problem is Python, so I tried to update Python, reinstall but nothing very wrong T_T
我正在查看日志,我可以看到问题出在 Python 上,所以我尝试更新 Python,重新安装,但没有什么大问题 T_T
[MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.dbg.DebuggerLLDB (/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3587 "dlopen_preflight(/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB): Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.7/Python
Referenced from: /Applications/Xcode8b.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB Reason: no suitable image found. Did find: /System/Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11C480000, size=0x00171000 segment=__TEXT in Segment::map() mapping /System/Library/Frameworks/Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=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() error 1 at address=0x11C900000, size=0x00171000 segment=__TEXT in Segment::map() mapping /System/Library/Frameworks/Python.framework/Versions/2.7/Python" UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB, NSDebugDescription=dlopen_preflight(/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB): Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.7/Python
Referenced from: /Applications/Xcode8b.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB Reason: no suitable image found. Did find: /System/Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11C480000, size=0x00171000 segment=__TEXT in Segment::map() mapping /System/Library/Frameworks/Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=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() error 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=The bundle “DebuggerLLDB” couldn't be loaded because it is damaged or missing necessary resources.}, dyldError = dlopen(/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB, 0): Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.7/Python
Referenced from: /Applications/Xcode8b.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB Reason: no suitable image found. Did find: /System/Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11CB40000, size=0x00171000 segment=__TEXT in Segment::map() mapping /System/Library/Frameworks/Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=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() error 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: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-11160.22/IDEFoundation/Initialization/IDEInitialization.m:262 Details: Xcode failed its initial plug-in scan, error = Error Domain=DVTPlugInErrorDomain Code=2 "Loading a plug-in failed." UserInfo={DVTPlugInIdentifierErrorKey=com.apple.dt.dbg.DebuggerLLDB, DVTPlugInExecutablePathErrorKey=/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., DVTPlugInDYLDErrorMessageErrorKey=dlopen(/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB, 0): Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.7/Python
Referenced from: /Applications/Xcode8b.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB Reason: no suitable image found. Did find: /System/Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11CB40000, size=0x00171000 segment=__TEXT in Segment::map() mapping /System/Library/Frameworks/Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=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() error 1 at address=0x11CFC0000, size=0x00171000 segment=__TEXT in Segment::map() mapping /System/Library/Frameworks/Python.framework/Versions/2.7/Python, NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin, NSLocalizedFailureReason=The plug-in “com.apple.dt.dbg.DebuggerLLDB” at path “/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin” could not be loaded. The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x7f97fcc92500 {Error Domain=NSCocoaErrorDomain Code=3587 "dlopen_preflight(/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB): Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.7/Python
Referenced from: /Applications/Xcode8b.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB Reason: no suitable image found. Did find: /System/Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11C480000, size=0x00171000 segment=__TEXT in Segment::map() mapping /System/Library/Frameworks/Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=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() error 1 at address=0x11C900000, size=0x00171000 segment=__TEXT in Segment::map() mapping /System/Library/Frameworks/Python.framework/Versions/2.7/Python" UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB, NSDebugDescription=dlopen_preflight(/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB): Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.7/Python
Referenced from: /Applications/Xcode8b.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB Reason: no suitable image found. Did find: /System/Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11C480000, size=0x00171000 segment=__TEXT in Segment::map() mapping /System/Library/Frameworks/Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=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() error 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=The bundle “DebuggerLLDB” couldn't be loaded because it is damaged or missing necessary resources.}}} Function: BOOL _IDEInitializePlugInManager(IDEInitializationOptions, NSError *__autoreleasing *) Thread: {number = 1, name = main} Please file a bug at http://bugreport.apple.comwith this warning message and any useful information you can provide.
[MT] DVTPlugInLoading: 无法加载插件 com.apple.dt.dbg.DebuggerLLDB (/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin) 的代码,error = Error Domain=NSCocoaErrorDomain Code=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() error 1 at address=0x11C480000, size=0x00171000 segment=__TEXT in Segment::map() mapping /System/Library/Frameworks /Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11C6C0000, size=0x00171000 segment=__TEXT in Segment::map() 映射/ Library/Frameworks/Python.framework/Versions/2.7/Python /System/Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11C900000, size=0x00171000 segment=__TEXT in Segment:: map() 映射 /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() error 1 at address=0x11C480000, size=0x00171000 segment=__TEXT in Segment::map() mapping /System/Library/Frameworks /Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11C6C0000, size=0x00171000 segment=__TEXT in Segment::map() 映射/ Library/Frameworks/Python.framework/Versions/2.7/Python /System/Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11C900000, size=0x00171000 segment=__TEXT in Segment:: map() 映射 /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() error 1 at address=0x11CB40000, size=0x00171000 segment=__TEXT in Segment::map() mapping /System/Library/Frameworks /Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11CD80000, size=0x00171000 segment=__TEXT in Segment::map() 映射/ Library/Frameworks/Python.framework/Versions/2.7/Python /System/Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11CFC0000, size=0x00171000 segment=__TEXT in Segment:: map() 映射 /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 初始失败详细信息:Xcode插件扫描,错误=错误域=DVTPlugInErrorDomain代码=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): 库未加载:
引用自:/Applications/Xcode8b.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB 原因:找不到合适的图像。是否发现:/System/Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11CB40000, size=0x00171000 segment=__TEXT in Segment::map() mapping /System/Library/Frameworks /Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11CD80000, size=0x00171000 segment=__TEXT in Segment::map() 映射/ Library/Frameworks/Python.framework/Versions/2.7/Python /System/Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11CFC0000, size=0x00171000 segment=__TEXT in Segment:: map() 映射 /System/Library/Frameworks/Python.framework/Versions/2.7/Python,NSLocalizedDescription=加载插件失败。, NSFilePath=/Applications/Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin, NSLocalizedFailureReason=插件“com.apple.dt.dbg.DebuggerLLDB”在路径“/Applications/” Xcode8b.app/Contents/PlugIns/DebuggerLLDB.ideplugin”无法加载。插件或其必备插件之一可能丢失或损坏。, NSUnderlyingError=0x7f97fcc92500 {Error Domain=NSCocoaErrorDomain Code=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/PlugIns/DebuggerLLDB.ideplugin”中的DebuggerLLDB”。插件或其必备插件之一可能丢失或损坏。, NSUnderlyingError=0x7f97fcc92500 {Error Domain=NSCocoaErrorDomain Code=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/PlugIns/DebuggerLLDB.ideplugin”中的DebuggerLLDB”。插件或其必备插件之一可能丢失或损坏。, NSUnderlyingError=0x7f97fcc92500 {Error Domain=NSCocoaErrorDomain Code=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() error 1 at address=0x11C480000, size=0x00171000 segment=__TEXT in Segment::map() mapping /System/Library/Frameworks /Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11C6C0000, size=0x00171000 segment=__TEXT in Segment::map() 映射/ Library/Frameworks/Python.framework/Versions/2.7/Python /System/Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11C900000, size=0x00171000 segment=__TEXT in Segment:: map() 映射 /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() error 1 at address=0x11C480000, size=0x00171000 segment=__TEXT in Segment::map() mapping /System/Library/Frameworks /Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11C6C0000, size=0x00171000 segment=__TEXT in Segment::map() 映射/ Library/Frameworks/Python.framework/Versions/2.7/Python /System/Library/Frameworks/Python.framework/Versions/2.7/Python: mmap() error 1 at address=0x11C900000, size=0x00171000 segment=__TEXT in Segment:: map() 映射 /System/Library/Frameworks/Python.framework/Versions/2.7/Python,http://bugreport.apple.com包含此警告消息以及您可以提供的任何有用信息。
currently in my car I installed 2.7.11 Python and Python 3.5, but the default version is the 2.7.11.
目前在我的车里我安装了 2.7.11 Python 和 Python 3.5,但默认版本是 2.7.11。
The path in which the two Python are installed is:
两个python安装的路径是:
/System/Library/Frameworks/Python.framework/Versions
回答by WhiteTiger
just for the record, Apple says the problem is related to the fact that I updated Python (although I downloaded from the official website python.org) and indicates that 8 of Xcode is more control for the XcodeGhost problem.
只是为了记录,Apple 表示问题与我更新 Python 的事实有关(虽然我是从官方网站 python.org 下载的)并表明 Xcode 8 对 XcodeGhost 问题的控制更多。
I have to try to reinsert the 2.7.10 version and see if this works for me.
我必须尝试重新插入 2.7.10 版本,看看这是否适合我。
回答by CDOT India
If facing the
如果面对
Library not loaded: /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice
Library not loaded: /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice
Try the solution given at this link
尝试此链接中给出的解决方案
https://discussions.apple.com/thread/3863980?start=0&tstart=0
https://discussions.apple.com/thread/3863980?start=0&tstart=0
Just double click Xcode 4.3.1 dmg
file ...
只需双击Xcode 4.3.1 dmg
文件...
Then window will show Xcode app.
然后窗口将显示 Xcode 应用程序。
Right Cick App
右键单击应用程序
Show Package contents
显示包裹内容
Then go to /Contents/Resources/Packages/
然后去 /Contents/Resources/Packages/
Install That MobileDevice.pkg ...
安装那个 MobileDevice.pkg ...
After installation
安装后
Double click on Xcode app ...
双击 Xcode 应用程序...
Just See Xcode is ready ...
只需看看 Xcode 已准备好...
回答by gaocegege
I also have the problem, and I copy an official version of Python 2.7 to /System/Library/Frameworks/Python.framework/Versions/2.7/
, the problem is gone.
我也有这个问题,我复制了一个正式版的Python 2.7到/System/Library/Frameworks/Python.framework/Versions/2.7/
,问题就解决了。
回答by BlackM
Try to delete(copy them on other folder for backup) everything in this folder:
尝试删除(将它们复制到其他文件夹进行备份)此文件夹中的所有内容:
~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/
~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/