【问题标题】:Xcode 4.3 crashes when using LLDB使用 LLDB 时 Xcode 4.3 崩溃
【发布时间】:2012-05-05 01:11:39
【问题描述】:

自从安装 xcode 4.3(来自应用商店)后,当我尝试在调试器设置为 LLDB 的情况下运行一些应用时,Xcode 崩溃。 GDB 工作正常。

我已经尝试过重新安装 iTunes 并删除所有 xcode 痕迹并重新安装。我还尝试删除 .xib 文件并将它们重新添加到项目中。

任何帮助都会很棒:)

这是生成的一些报告:

进程:Xcode [2102] 路径:
/Applications/Xcode.app/Contents/MacOS/Xcode 标识符:
com.apple.dt.Xcode 版本:4.3.2 (1177) 代码类型:
X86-64(本机)

日期/时间:2012-05-05 11:02:34.865 +1000 操作系统版本:Mac OS X 10.7.3 (11D50b) 报告版本:9

自上次报告以来的间隔:自上次报告以来的 2063 秒崩溃 报告:7 自上次报告以来的每个应用程序间隔:882 秒 自上次报告以来每个应用程序崩溃:7

崩溃的线程:0 调度队列:com.apple.main-thread

异常类型:EXC_CRASH (SIGABRT) 异常代码: 0x00000000000000000, 0x0000000000000000

应用程序特定信息:ProductBuildVersion:4E2002 UNCAUGHT 异常(NSInternalInconsistencyException):无法加载插件 'com.apple.dt.dbg.DebuggerLLDB' 同时触发扩展故障 'Xcode.DebuggerFoundation.Debugger.LLDB' 用户信息:{ NSUnderlyingError = "Error Domain=DVTPlugInErrorDomain Code=2 \"加载插件失败。\" UserInfo=0x402a89c20 {DVTPlugInIdentifierErrorKey=com.apple.dt.dbg.DebuggerLLDB, DVTPlugInExecutablePathErrorKey=/Applications/Xcode.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB, NSLocalizedRecoverySuggestion=插件或其先决条件之一 插件可能丢失或损坏,可能需要重新安装。 NSLocalizedDescription=加载插件失败。, NSFilePath=/Applications/Xcode.app/Contents/PlugIns/DebuggerLLDB.ideplugin, NSLocalizedFailureReason=插件 \U201ccom.apple.dt.dbg.DebuggerLLDB\U201d 在路径 \U201c/Applications/Xcode.app/Contents/PlugIns/DebuggerLLDB.ideplugin\U201d 无法加载。插件或其必备插件之一 可能丢失或损坏。, NSUnderlyingError=0x4003c62e0 \"捆绑包 \U201cDebuggerLLDB\U201d\U2019 无法加载,因为它已损坏 或缺少必要的资源。\"}";提示:无 回溯:0 0x00007fff945fcfaa __exceptionPreprocess(在 CoreFoundation 中)1 0x00007fff8c9add5e objc_exception_throw(在 libobjc.A.dylib 中)2 0x000000010f1b207f -[DVTExtension _fireExtensionFault](在 DVTFoundation) 3 0x000000010f22c666 __DVTDispatchSync_block_invoke_0(在 DVTFoundation 中)4 0x00007fff90a53aad _dispatch_barrier_sync_f_invoke(在 libdispatch.dylib) 5 0x000000010f22c483 DVTDispatchSync (在 DVTFoundation) 6 0x000000010f22c297 DVTSyncPerformBlock (在 DVTFoundation) 7 0x000000010f18e69b -[DVTDispatchLock performLockedBlock:](在 DVTFoundation 中)8 0x000000010f1b1e32 -[DVTExtension _valueForKey:inParameterData:usingSchema:](在 DVTFoundation 中)9 0x000000010f1b1d6f -[DVTExtension valueForKey:] (在 DVTFoundation 中)10 0x0000000116707322 -[DBGLLDBDebugLocalService operationWorkerWithLaunchSession:error:](在 DebuggerLLDBService 中)11 0x0000000116cc10b8(在 IDEiPhone 支持中) 12 0x000000010f85f9d3 -[IDERunDestination runOperationForLaunchSession:error:](在 IDEFoundation 中)13 0x000000010f85e690 -[IDELaunchSchemeAction runOperationForExecutionEnvironment:withBuildOperation:buildParameters:buildableProductDirectories:runDestination:outError:] (在 IDEFoundation 中)14 0x000000010f85a5d0 -[IDEScheme _executionOperationForExecutionEnvironment:build:onlyBuild:buildPurpose:buildCommand:schemeCommand:overridingProperties:destination:buildLog:filePath:error:testCallbackBlock:] (在 IDEFoundation 中)15 0x000000010f85dc0b -[IDEScheme runWithExecutionContext:buildIfNeeded:onlyBuild:destination:overridingProperties:commandName:error:] (在 IDEFoundation 中)16 0x000000010fc8cdfc -[IDEWorkspaceTabController _actuallyPerformContextTask:command:commandName:buildCommand:filePath:completionBlock:] (在 IDEKit 中)17 0x000000010fd354aa __107-[IDEWorkspaceTabController _performContextTask:command:commandName:buildCommand:filePath:completionBlock:]_block_invoke_0 (在 IDEKit 中)18 0x000000010fc8cab3 -[IDEWorkspaceTabController _performContextTask:command:commandName:buildCommand:filePath:completionBlock:] (在 IDEKit 中)19 0x000000010fd3578e __101-[IDEWorkspaceTabController _performDebuggableContextTask:command:commandName:buildCommand:filePath:]_block_invoke_0 (在 IDEKit 中)20 0x00000001109e62e8 -[DVTDeveloperModeAlertHelper _askToEnableDeveloperModeIfNecessary](在 DVTDeveloperModeHelper 中)21 0x000000010fcb85aa -[IDEWorkspaceTabController _performDebuggableContextTask:command:commandName:buildCommand:filePath:] (在 IDEKit 中)22 0x000000010fcb83e5 -[IDEWorkspaceTabController runActiveRunContext:](在 IDEKit 中)23 0x00007fff945ec75d -[NSObject performSelector:withObject:](在 CoreFoundation 中)24 0x00007fff913f1cb2 -[NSApplication sendAction:to:from:](在 AppKit 中) 25 0x000000010f4838b6 -[DVTApplication sendAction:to:from:] (在 DVTKit) 26 0x000000010fbd2096 -[IDEApplication sendAction:to:from:] (在 IDEKit 中)27 0x00007fff945ec75d -[NSObject performSelector:withObject:](在 CoreFoundation 中)28 0x00007fff913f1cb2 -[NSApplication sendAction:to:from:](在 AppKit 中) 29 0x000000010f4838b6 -[DVTApplication sendAction:to:from:] (在 DVTKit) 30 0x000000010fbd2096 -[IDEApplication sendAction:to:from:] (在 IDEKit 中)31 0x000000010f53ea10 -[DVTDelayedMenuButtonCell trackMouse:inRect:ofView:untilMouseUp:](在 DVTKit 中)32 0x00007fff913efbde -[NSControl mouseDown:](在 AppKit 中)33 0x00007fff913ba6e0 -[NSWindow sendEvent:](在 AppKit 中)34 0x00007fff9135316d -[NSApplication sendEvent:](在 AppKit 中)35 0x000000010fbcddd1 -[IDEApplication sendEvent:](在 IDEKit 中)36 0x00007fff912e91f2 -[NSApplication 运行](在 AppKit 中)37 0x00007fff91567b88 NSApplicationMain(在 AppKit 中)38 0x000000010f188eec(在 Xcode 中)执行 @selector(performRunAction:) 来自发件人 IDERunPauseContinueToolbarButton 0x401e634a0 objc [2102]:垃圾 集合是 ON abort() 调用

【问题讨论】:

  • 查看解决方案here。它对我来说非常有效。

标签: xcode crash lldb


【解决方案1】:

您好,我有同样的问题,我向 Apple 报告了,他们告诉我这是一个错误并且他们知道,我唯一的解决方法是一直将编译器更改为 GDB,直到 Apple 修复错误。

【讨论】:

    【解决方案2】:

    我已经解决了如下问题:可能对你有用。我尝试在终端中执行 lldb 命令,它得到的结果是我的 lldb 需要 python 2.7。但是之前,当我安装 clang ,python版本改为2.6,所以我重新安装了python 2.7。我的lldb运行良好。

    【讨论】:

      【解决方案3】:

      您升级到 Xcode 4.6.1 了吗?如果是这样,那么如果没有 2.7 重新安装 Python,请查找 /System/Library/Frameworks/Python.framework/Versions/2.7。 Python.org 上有一个 MAC 安装程序。顺便说一句,如果您碰巧看到 Current 而不是 2.7,请删除名为 Current 的文件夹。我遇到了 LLDB 问题,这就是我所做的,并且一切正常。

      【讨论】:

        【解决方案4】:

        我在使用 homebrew 安装 Python 时遇到了同样的问题。

        我刚刚这样做了:

        sudo ln -s /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions /System/Library/Frameworks/Python.framework/Versions
        

        问题就解决了。

        【讨论】:

          【解决方案5】:

          从 Mountain Lion (10.8.2)、Xcode 4.5.1 开始,我仍然无法正常工作,我尝试删除并重新安装无济于事。现在这对我来说并不是什么大不了的事,因为我还在学习(斯坦福大学的课程和现在正在做大书呆子牧场的书)但是我想一旦我开始做一些团队合作,人们不会欣赏我的改变将产品方案从 LLDB 转移到 GDB,这样我就可以运行模拟器了。

          【讨论】:

            猜你喜欢
            • 2012-08-07
            • 1970-01-01
            • 1970-01-01
            • 2012-03-08
            • 1970-01-01
            • 2014-05-24
            • 2016-10-20
            • 1970-01-01
            • 1970-01-01
            相关资源
            最近更新 更多