2017-06-21 63 views
1

嗨即时通讯工作与Xcode和swift3。Xcode不显示错误堆栈

当我运行的应用程序,但坠毁在Xcode中不显示我的错误:

enter image description here

,如果我想找到线的时候出现错误,则我可以做什么

回答

1

苹果将此称为您应用程序的“异常退出”。从Apple documentation

Abnormal Exit [EXC_CRASH // SIGABRT] - The process exited abnormally. The most common causes of crashes with this exception type are uncaught Objective-C/C++ exceptions and calls to abort().

App Extensions will be terminated with this exception type if they take too much time to initialize (a watchdog termination). If an extension is killed due to a hang at launch, the Exception Subtype of the generated crash report will be LAUNCH_HANG. Because extensions do not have a main function, any time spent initializing occurs within static constructors and +load methods present in your extension and dependent libraries. You should defer as much of this work as possible.

我发现,这是因为通过FoundationUIKit无效参数来完成它的引擎盖下工作引起的。如果我是你,我会通过设置breakpoints来研究可能导致这种情况的原因,你的应用程序正在发生这种崩溃并缩小了罪魁祸首。