使用LLDB时,Xcode 4.3崩溃了。

4
自从安装了来自App Store的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年5月5日11:02:34.865 +1000 操作系统版本:Mac OS X 10.7.3 (11D50b) 报告版本:9

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

崩溃线程:0 Dispatch queue: com.apple.main-thread

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

应用程序特定信息:ProductBuildVersion: 4E2002 未捕获 异常(NSInternalInconsistencyException):在触发扩展名为“Xcode.DebuggerFoundation.Debugger.LLDB”的错误时无法加载插件'com.apple.dt.dbg.DebuggerLLDB' UserInfo: { NSUnderlyingError = "Error Domain=DVTPlugInErrorDomain Code=2 \"Loading a plug-in failed.\" UserInfo=0x402a89c20 {DVTPlugInIdentifierErrorKey=com.apple.dt.dbg.DebuggerLLDB, DVTPlugInExecutablePathErrorKey=/Applications/Xcode.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., NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/DebuggerLLDB.ideplugin, NSLocalizedFailureReason=The plug-in \U201ccom.apple.dt.dbg.DebuggerLLDB\U201d at path \U201c/Applications/Xcode.app/Contents/PlugIns/DebuggerLLDB.ideplugin\U201d could not be loaded. The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x4003c62e0 \"The bundle \U201cDebuggerLLDB\U201d couldn\U2019t be loaded because it is damaged or missing necessary resources.\"}"; } 提示:无 回溯: 0 0x00007fff945fcfaa __exceptionPreprocess (in CoreFoundation) 1 0x00007fff8c9add5e objc_exception_throw (in libobjc.A.dylib) 2 0x000000010f1b207f -[DVTExtension _fireExtensionFault] (in DVTFoundation) 3 0x000000010f22c666 __DVTDispatchSync_block_invoke_0 (in DVTFoundation) 4 0x00007fff90a53aad _dispatch_barrier_sync_f_invoke (in libdispatch.dylib) 5 0x000000010f22c483 DVTDispatchSync (in DVTFoundation) 6 0x000000010f22c297 DVTSyncPerformBlock (in DVTFoundation) 7 0x000000010f18e69b -[DVTDispatchLock performLockedBlock:] (in DVTFoundation) 8 0x000000010f1b1e32 -[DVTExtension _valueForKey:inParameterData:usingSchema:] (in DVTFoundation) 9 0x000000010f1b1d6f -[DVTExtension valueForKey:] (in DVTFoundation) 10 0x0000000116707322 -[DBGLLDBDebugLocalService operationWorkerWithLaunchSession:error:] (in DebuggerLLDBService) 11 0x0000000116cc10b

请查看此解决方案链接。对我来说完美地解决了问题。 - calql8edkos
5个回答

6

你好,我也遇到了相同的问题并向苹果报告了此问题。他们告诉我这是一个bug,并且已经知道了这个问题。我唯一的解决方法是始终将编译器更改为GDB,直到苹果公司修复此漏洞。


5

我已经解决了以下问题:这可能对你有用。我在终端中尝试执行lldb命令,结果得到的是我的lldb需要Python 2.7,但是在安装clang之前,Python版本已更改为2.6,所以我重新安装了Python 2.7,现在我的lldb可以正常工作。


1

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


1
当我使用Homebrew安装Python时,也遇到了同样的问题。
我只是按照以下步骤进行解决:
sudo ln -s /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions /System/Library/Frameworks/Python.framework/Versions

问题已解决。


0

截至Mountain Lion(10.8.2),Xcode 4.5.1,对我仍然无效,我尝试删除并重新安装,但无济于事。目前这对我来说不是很重要,因为我还在学习(正在参加斯坦福课程和阅读《大牛书》),但我想象一旦我开始做团队工作,人们就不会欣赏我将产品方案从LLDB更改为GDB,以便我可以运行模拟器。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接