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

标签 ios xcode crash xcode5 lldb

当我点击“运行”时,无论我的代码如何,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 项目。原因是我在玩 Python 并将其从 2.7.x 降级到 2.6.8。所以,我已经将 python 从旧版本更新到 2.7.8,到目前为止没有问题,Xcode 部署一切都非常顺利。我尝试过的其他事情甚至是卸载 X 代码并重新安装,但这没有帮助。在 macbook 上升级 python 的非常有用的页面:http://wolfpaulus.com/jounal/mac/installing_python_osx/

关于ios - 由于 LLDB,Xcode 在尝试运行项目时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22051612/

相关文章:

iphone - AvCam iOS 6 中的风景

ios - 在 Windows 机器上压缩后的预期标识符或 '('

java - 想要在值为 NULL 或 VOID 时显示错误消息(如果 EditText 为空但应用程序不断崩溃)

ios - 找不到接受提供的参数的 "init"的重载

iphone - 更快的 iPhone 图形

ios - 导入 LocalAuthentification.framework 在 iOS 7.1 上崩溃

ios - 为什么这个数组总是空的?

c++ - xcode链接器错误

java - 为什么我的应用程序在启动时不断崩溃 - Android

javascript - IE 7 崩溃并直接关闭,没有任何消息