首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >日志不出来

日志不出来
EN

Stack Overflow用户
提问于 2013-11-17 11:10:11
回答 1查看 41关注 0票数 0

我正在尝试使用此代码显示一个日志。但是,我看不到日志。xcode就会崩溃。

代码语言:javascript
复制
-(void) deleteMyFiles:(NSString*)filePath {
    NSError *error;

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

xcode的崩溃报告

代码语言:javascript
复制
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之外没有其他选项。

EN

回答 1

Stack Overflow用户

发布于 2013-11-17 11:14:34

Xcode5不支持GDB。引用自release notes

要点:Xcode5不支持使用LLVM- GDB编译器和GDB调试器。当Xcode5打开时,配置为使用LLVM-GCC和GDB的现有项目将被重新配置为使用LLVM编译器和LLDB调试器。如果有任何问题阻止您迁移到Xcode5,请使用bugreporter.apple.com提交bug。

也许这篇thread @ discussion.apple.com中的讨论有助于解决崩溃问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20026737

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档