由于LLDB,尝试运行项目时Xcode崩溃

4
当我点击“Run”按钮时,无论我的代码如何,Xcode都会立即崩溃。崩溃报告显示LLDB插件无法正确读取:
Error getting value for key 'workerClass' of extension 'Xcode.DebuggerFoundation.Debugger.LLDB' in plug-in 'com.apple.dt.dbg.DebuggerLLDB'

故障报告:
Process:         Xcode [2184]
Path:            /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:      com.apple.dt.Xcode
Version:         5.0.2 (3335.32)
Build Info:      IDEApplication-3335032000000000~4
Code Type:       X86-64 (Native)
Parent Process:  launchd [147]
Responsible:     Xcode [2184]
User ID:         501

Date/Time:       2014-02-26 18:41:28.657 +0100
OS Version:      Mac OS X 10.9.2 (13C64)
Report Version:  11
Anonymous UUID:  B5F54D76-660F-C9CE-0C9C-D0D41BA7332B

Sleep/Wake UUID: 9A19E5A2-14DE-40FF-8993-668257EF9F44

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
Sending performRunAction: to <IDERunPauseContinueToolbarButton: 0x7f8494673e80> from <IDERunPauseContinueToolbarButton: 0x7f8494673e80>
ProductBuildVersion: 5A3005
UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Error getting value for key 'workerClass' of extension 'Xcode.DebuggerFoundation.Debugger.LLDB' in plug-in 'com.apple.dt.dbg.DebuggerLLDB'
UserInfo: {
    NSUnderlyingError = "Error Domain=DVTPlugInErrorDomain Code=2 \"Loading a plug-in failed.\" UserInfo=0x7f8496dca9a0 {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=0x7f8496dc98f0 \"The bundle \U201cDebuggerLLDB\U201d couldn\U2019t be loaded because it is damaged or missing necessary resources.\"}";
}
Hints: 
  0: Sending performRunAction: to <IDERunPauseContinueToolbarButton: 0x7f8494673e80> from <IDERunPauseContinueToolbarButton: 0x7f8494673e80>
  1: Sending performAction: to <DVTDelayedMenuButtonCell: 0x7f8494674490> from <IDERunPauseContinueToolbarButton: 0x7f8494673e80>
Backtrace:
  0  0x00007fff91211244 __exceptionPreprocess (in CoreFoundation)
  1  0x00000001082ddd73 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
  2  0x00007fff940a2e75 objc_exception_throw (in libobjc.A.dylib)
  3  0x000000010826bcd2 -[DVTExtension valueForKey:] (in DVTFoundation)
  4  0x000000010d3d1109 -[DBGLLDBDebugLocalService operationWorkerWithLaunchSession:error:] (in DebuggerLLDBService)
  5  0x0000000110106e17 -[IDERuniPhoneSimulatorService operationWorkerWithLaunchSession:error:] (in IDEiOSSupportCore)
  6  0x0000000108d38d49 -[IDERunDestination runWorkerForLaunchSession:error:] (in IDEFoundation)
  7  0x0000000108d38a74 -[IDERunDestination runOperationForLaunchSession:error:] (in IDEFoundation)
  8  0x0000000108da0fee -[IDELaunchSchemeAction runOperationForExecutionEnvironment:withBuildOperation:buildParameters:buildableProductDirectories:schemeActionRecord:outError:actionCallbackBlock:] (in IDEFoundation)
  9  0x0000000108d94f5b -[IDEScheme _executionOperationForExecutionEnvironment:build:onlyBuild:buildPurpose:buildCommand:schemeCommand:title:overridingProperties:destination:buildLog:filePath:overridingBuildConfiguration:restorePersistedBuildResults:invocationRecord:overridingTestingSpecifiers:error:actionCallbackBlock:] (in IDEFoundation)

这可能是由于损坏的 LLDB 调试器引起的,只有 Apple 才能解决。 然而,我在互联网上还没有发现很多类似的问题,所以这可能只会出现在我的 Xcode 上。


你尝试重新安装Xcode了吗? - Nikolai Ruhe
尝试重新安装Xcode。 - Gavin
1
虽然不是与编程直接相关的内容。 - Nikolai Ruhe
是的,我尝试过重新安装Xcode,但没有起作用。 - Flynamic
一个非常相似的问题(但不完全相同),以及我如何解决它:https://dev59.com/0H7aa4cB1Zd3GeqPo1nt#23327652 - verec
3个回答

1
我遇到了同样的问题:无法运行任何Xcode项目。原因是我在Python上玩耍并将其从2.7.x降级到了2.6.8。因此,我将Python更新为2.7.8版本,没有出现问题,Xcode可以非常顺利地部署一切。我尝试过的其他事情甚至包括卸载Xcode并重新安装,但这并没有帮助。这是一个非常有用的页面,可以升级您的Macbook上的Python: http://wolfpaulus.com/jounal/mac/installing_python_osx/

1

如果任何人仍然遇到同样的问题,苹果告诉我这是由于安装了错误的“定制”版本Python引起的。我安装了Python 2.7.6并且解决了问题。


1

这与您的项目无关。某种原因导致您启动的Xcode.app已经损坏。尝试从App Store或ADC下载最新的Xcode。

如果这不起作用,请尝试报告您的问题:Apple Bug Reporter


是的,这是一个相当新的问题,抱歉。 - Vlad Z.
1
无论如何,还是谢谢你。你知道,最糟糕的问题就是那些你自己解决不了的。 - Flynamic

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