2012-05-05 90 views
4

從安裝xcode 4.3(從應用商店)開始,​​當我嘗試運行一些調試器設置爲LLDB的應用時,Xcode崩潰。 GDB工作正常。Xcode 4.3在使用LLDB時崩潰

我已經嘗試重新安裝iTunes並刪除xcode的所有痕跡並重新安裝。我也嘗試刪除.xib文件並將它們重新添加到項目中。

任何幫助將是巨大的:)

下面是一些所生成的報告:

Process: Xcode [2102] Path:
/Applications/Xcode.app/Contents/MacOS/Xcode Identifier:
com.apple.dt.Xcode Version: 4.3.2 (1177) Code Type:
X86-64 (Native)

Date/Time: 2012-05-05 11:02:34.865 +1000 OS Version: Mac OS X 10.7.3 (11D50b) Report Version: 9

Interval Since Last Report: 2063 sec Crashes Since Last Report: 7 Per-App Interval Since Last Report: 882 sec Per-App Crashes Since Last Report: 7

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

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

Application Specific Information: ProductBuildVersion: 4E2002 UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Couldn't load plug-in 'com.apple.dt.dbg.DebuggerLLDB' while firing fault for extension 'Xcode.DebuggerFoundation.Debugger.LLDB' 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.\"}"; } Hints: None Backtrace: 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 0x0000000116cc10b8 (in IDEiPhoneSupport) 12 0x000000010f85f9d3 -[IDERunDestination runOperationForLaunchSession:error:] (in IDEFoundation) 13 0x000000010f85e690 -[IDELaunchSchemeAction runOperationForExecutionEnvironment:withBuildOperation:buildParameters:buildableProductDirectories:runDestination:outError:] (in IDEFoundation) 14 0x000000010f85a5d0 -[IDEScheme _executionOperationForExecutionEnvironment:build:onlyBuild:buildPurpose:buildCommand:schemeCommand:overridingProperties:destination:buildLog:filePath:error:testCallbackBlock:] (in IDEFoundation) 15 0x000000010f85dc0b -[IDEScheme runWithExecutionContext:buildIfNeeded:onlyBuild:destination:overridingProperties:commandName:error:] (in IDEFoundation) 16 0x000000010fc8cdfc -[IDEWorkspaceTabController _actuallyPerformContextTask:command:commandName:buildCommand:filePath:completionBlock:] (in IDEKit) 17 0x000000010fd354aa __107-[IDEWorkspaceTabController _performContextTask:command:commandName:buildCommand:filePath:completionBlock:]_block_invoke_0 (in IDEKit) 18 0x000000010fc8cab3 -[IDEWorkspaceTabController _performContextTask:command:commandName:buildCommand:filePath:completionBlock:] (in IDEKit) 19 0x000000010fd3578e __101-[IDEWorkspaceTabController _performDebuggableContextTask:command:commandName:buildCommand:filePath:]_block_invoke_0 (in IDEKit) 20 0x00000001109e62e8 -[DVTDeveloperModeAlertHelper _askToEnableDeveloperModeIfNecessary] (in DVTDeveloperModeHelper) 21 0x000000010fcb85aa -[IDEWorkspaceTabController _performDebuggableContextTask:command:commandName:buildCommand:filePath:] (in IDEKit) 22 0x000000010fcb83e5 -[IDEWorkspaceTabController runActiveRunContext:] (in IDEKit) 23 0x00007fff945ec75d -[NSObject performSelector:withObject:] (in CoreFoundation) 24 0x00007fff913f1cb2 -[NSApplication sendAction:to:from:] (in AppKit) 25 0x000000010f4838b6 -[DVTApplication sendAction:to:from:] (in DVTKit) 26 0x000000010fbd2096 -[IDEApplication sendAction:to:from:] (in IDEKit) 27 0x00007fff945ec75d -[NSObject performSelector:withObject:] (in CoreFoundation) 28 0x00007fff913f1cb2 -[NSApplication sendAction:to:from:] (in AppKit) 29 0x000000010f4838b6 -[DVTApplication sendAction:to:from:] (in DVTKit) 30 0x000000010fbd2096 -[IDEApplication sendAction:to:from:] (in IDEKit) 31 0x000000010f53ea10 -[DVTDelayedMenuButtonCell trackMouse:inRect:ofView:untilMouseUp:] (in DVTKit) 32 0x00007fff913efbde -[NSControl mouseDown:] (in AppKit) 33 0x00007fff913ba6e0 -[NSWindow sendEvent:] (in AppKit) 34 0x00007fff9135316d -[NSApplication sendEvent:] (in AppKit) 35 0x000000010fbcddd1 -[IDEApplication sendEvent:] (in IDEKit) 36 0x00007fff912e91f2 -[NSApplication run] (in AppKit) 37 0x00007fff91567b88 NSApplicationMain (in AppKit) 38 0x000000010f188eec (in Xcode) Performing @selector(performRunAction:) from sender IDERunPauseContinueToolbarButton 0x401e634a0 objc[2102]: garbage collection is ON abort() called

+0

簽出解決方案[這裏](http://stackoverflow.com/questions/11905378/xcode-4-3-4-4-crashes-with-breakpoints-using-lldb-breakpoints-useless-with-gdb/ 11961253?iemail = 1#11961253)。它對我來說非常合適。 – calql8edkos

回答

6

您好我有同樣的問題,我對蘋果的報告,他們告訴我是一個bug而且他們知道這一點,我唯一的辦法就是一直將編譯器改爲GDB,直到Apple修復這個bug。

+0

我想我們只需要等待更新:) – Marty

0

作爲山獅(10.8.2),Xcode 4.5.1,我仍然不工作,我試過刪除並重新安裝無濟於事。這對我來說並不是什麼大事,因爲我還在學習(斯坦福大學的課程&現在在做大書呆子牧場的書),但是我想我有一次開始做一些團隊合作,人們不會理解我改變將產品方案從LLDB轉換到GDB,以便我可以運行模擬器。

5

我已經解決了以下問題:可能對你有用。我嘗試在終端執行lldb命令,它得到了像我的lldb需要python 2.7的結果。但是在我安裝鐺,蟒蛇版本更改爲2.6,所以我重新安裝蟒2.7.my lldb運作良好。

1

您是否升級到Xcode 4.6.1?如果是這樣,那麼查找/System/Library/Frameworks/Python.framework/Versions/2.7,如果沒有2.7重新安裝Python。在Python.org上有一個用於MAC的安裝程序。順便說一句,如果你碰巧看到當前,而不是2.7刪除名爲當前文件夾。我有LLDB問題,這是我所做的一切,一切運作良好。

1

當使用自制軟件安裝Python時,我遇到了同樣的問題。

我只是這樣做:

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

而且問題得到解決。