问题描述
我正在尝试调试我的应用程序的界面,并在启动时立即崩溃:
I'm trying to debug my app's interface and immediately as it launches it crashes with:
libc++abi.dylib: terminating with uncaught exception of type NSException
当我输入 bt
在调试窗格中
* thread #1: tid = 0x145ce, 0x00000001917e74bc libsystem_c.dylib`__abort + 176, queue = 'com.apple.main-thread', stop reason = EXC_BREAKPOINT (code=1, subcode=0x1917e74bc)
* frame #0: 0x00000001917e74bc libsystem_c.dylib`__abort + 176
frame #1: 0x00000001917e740c libsystem_c.dylib`abort + 152
frame #2: 0x00000001912b12d4 libc++abi.dylib`abort_message + 132
frame #3: 0x00000001912cecc0 libc++abi.dylib`default_terminate_handler() + 304
frame #4: 0x00000001912dc844 libobjc.A.dylib`_objc_terminate() + 124
frame #5: 0x00000001912cb66c libc++abi.dylib`std::__terminate(void (*)()) + 16
frame #6: 0x00000001912cb234 libc++abi.dylib`__cxa_rethrow + 144
frame #7: 0x00000001912dc71c libobjc.A.dylib`objc_exception_rethrow + 44
frame #8: 0x000000019277e32c CoreFoundation`CFRunLoopRunSpecific + 560
frame #9: 0x0000000194232198 GraphicsServices`GSEventRunModal + 180
frame #10: 0x00000001987c57fc UIKit`-[UIApplication _run] + 684
frame #11: 0x00000001987c0534 UIKit`UIApplicationMain + 208
frame #12: 0x00000001001ab6b0 AppName`main + 140 at AppDelegate.swift:30
frame #13: 0x00000001917615b8 libdyld.dylib`start + 4
有没有一种方法,我可以得到比这更有用的信息来解决我的问题。我已经尝试了页面上的所有内容。
Is there a way I can get more useful information than this to solve my issue. I have already tried everything on this page.
有关如何调试Interface Builder文档的任何提示?
Any tips on how to debug Interface Builder documents?
推荐答案
事实证明,我有一个无法识别的选择器被发送到实例0xABC123
异常被抛出。我只是发现了这个,因为我使用了内联闭包:
It turns out that I had an unrecognized selector sent to instance 0xABC123
exception being thrown. I only discovered this because I used the inline closure:
NSSetUncaughtExceptionHandler { exception in
print(exception)
print(exception.callStackSymbols)
}
在我的申请结束时(_:我的AppDelegate中的didFinishLaunchingWithOptions :)方法。由于某种原因,符号任何异常断点都没有为我提供相同数量的细节。
at the end of my application(_:didFinishLaunchingWithOptions:) method in my AppDelegate. For some reason the symbolic any exception breakpoint wasn't providing me with the same amount of detail.
这篇关于AppDelegate上的App SIGABRT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!