我在使用 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