日志没有出来

时间:2013-11-17 03:10:11

标签: xcode debugging

我正在尝试使用此代码显示日志。但是我看不到日志。 xcode只是崩溃了。

-(void) deleteMyFiles:(NSString*)filePath {
    NSError *error;

    if([[NSFileManager defaultManager] fileExistsAtPath:filePath]) {
        [[NSFileManager defaultManager] removeItemAtPath:filePath error:&error];
    } else {
        NSLog(@"not Exists");
    }
}

xcode的崩溃报告

Process:         Xcode [3625]
Path:            /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:      com.apple.dt.Xcode
Version:         5.0 (3332.25)
Build Info:      IDEApplication-3332025000000000~2
App Item ID:     497799835
App External ID: 38302662
Code Type:       X86-64 (Native)
Parent Process:  launchd [145]
User ID:         501

Date/Time:       2013-11-17 12:19:38.805 +0900
OS Version:      Mac OS X 10.8.5 (12F37)
Report Version:  10

Interval Since Last Report:          58305 sec
Crashes Since Last Report:           6
Per-App Interval Since Last Report:  62699 sec
Per-App Crashes Since Last Report:   6
Anonymous UUID:                      2C13D4CB-E939-611C-EA15-933EC101D4E5

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

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

Application Specific Information:
ProductBuildVersion: 5A1413
ASSERTION FAILURE in /SourceCache/IDEKit/IDEKit-3591/Framework/Classes/Editor/IDEEditorDocument.m:702
Details:  Autosaving when there is a different document instance registered w/ IDEDocumentController { self:0x7fda77aa62a0:  0  0x00000001099e5f48 -[DVTDocumentLocation(IDESourceControlDocumentLocationAdditions) exportDocumentUsingTemplateDocument:completionBlock:primaryBehavior:] (in IDEKit)
  1  0x00000001097ba663 -[IDESourceControlComparisonEditorDataSource documentForPrimaryDocumentLocation:completionBlock:] (in IDEKit)

我认为主要原因是我正在使用LLDB调试器,但我想更改为GDB,但在编辑方案区域中除了LLDB之外没有其他选项。

1 个答案:

答案 0 :(得分:0)

Xcode 5不支持GDB。来自release notes

  

重要:Xcode 5不支持使用LLVM-GCC编译器和GDB调试器。配置为使用LLVM-GCC和GDB的现有项目将被重新配置为在Xcode 5打开时使用LLVM编译器和LLDB调试器。请使用bugreporter.apple.com提交错误,以防止任何阻止您迁移到Xcode 5的问题原因。

这个thread @ discussion.apple.com中的讨论可能有助于解决崩溃问题。

相关问题