2

我在使用 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() 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:地址=0x11C6C0000,大小=0x00171000的mmap()错误1,Segment::map()映射中的段=__TEXT/ Library/Frameworks/Python.framework/Versions/2.7/Python /System/Library/Frameworks/Python.framework/Versions/2.7/Python:地址=0x11C900000,大小=0x00171000段=__TEXT中的mmap()错误1:: 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:地址=0x11C6C0000,大小=0x00171000的mmap()错误1,Segment::map()映射中的段=__TEXT/ Library/Frameworks/Python.framework/Versions/2.7/Python /System/Library/Frameworks/Python.framework/Versions/2.7/Python:地址=0x11C900000,大小=0x00171000段=__TEXT中的mmap()错误1:: 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:地址=0x11CD80000,大小=0x00171000的mmap()错误1,Segment::map()映射中的段=__TEXT/ Library/Frameworks/Python.framework/Versions/2.7/Python /System/Library/Frameworks/Python.framework/Versions/2.7/Python:地址=0x11CFC0000,大小=0x00171000段=__TEXT中的mmap()错误1:: 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 初始失败插件扫描,error = Error 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):库未加载:
引用自:/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:地址=0x11CD80000,大小=0x00171000的mmap()错误1,Segment::map()映射中的段=__TEXT/ Library/Frameworks/Python.framework/Versions/2.7/Python /System/Library/Frameworks/Python.framework/Versions/2.7/Python:地址=0x11CFC0000,大小=0x00171000段=__TEXT中的mmap()错误1:: 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:地址=0x11C6C0000,大小=0x00171000的mmap()错误1,Segment::map()映射中的段=__TEXT/ Library/Frameworks/Python.framework/Versions/2.7/Python /System/Library/Frameworks/Python.framework/Versions/2.7/Python:地址=0x11C900000,大小=0x00171000段=__TEXT中的mmap()错误1:: 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:地址=0x11C6C0000,大小=0x00171000的mmap()错误1,Segment::map()映射中的段=__TEXT/ Library/Frameworks/Python.framework/Versions/2.7/Python /System/Library/Frameworks/Python.framework/Versions/2.7/Python:地址=0x11C900000,大小=0x00171000段=__TEXT中的mmap()错误1:: map() 映射 /System/Library/Frameworks/Python.framework/Versions/2.7/Python,http://bugreport.apple.com带有此警告消息以及您可以提供的任何有用信息。

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

两个Python的安装路径是:

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

4 回答 4

2

如果面对

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 应用程序。

右键点击应用程序

显示包装内容

然后去/Contents/Resources/Packages/

安装那个 MobileDevice.pkg ...

安装后

双击 Xcode 应用程序...

Just See Xcode 已准备就绪...

于 2018-01-18T06:34:27.397 回答
2

只是为了记录,Apple说这个问题与我更新了Python有关(虽然我是从官方网站python.org下载的),并表示Xcode的8个对XcodeGhost问题的控制更多。

我必须尝试重新插入 2.7.10 版本,看看这是否适合我。

于 2016-06-15T10:29:57.163 回答
0

我也有这个问题,我把Python 2.7的正式版复制到/System/Library/Frameworks/Python.framework/Versions/2.7/,问题就没有了。

于 2016-09-20T12:08:28.353 回答
0

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

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

于 2016-09-20T12:11:26.973 回答