我在Xcode 5,beta 5上运行我的应用程序时出现此错误。编程场景的新功能并寻找一些指导。任何帮助表示赞赏。
(lldb) bt
* thread #1: tid = 0x55d8, 0x38c9b1f0 libsystem_kernel.dylib`__pthread_kill + 8, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
frame #0: 0x38c9b1f0 libsystem_kernel.dylib`__pthread_kill + 8
frame #1: 0x38d037b6 libsystem_pthread.dylib`pthread_kill + 58
frame #2: 0x38c4bff8 libsystem_c.dylib`abort + 76
frame #3: 0x3807e98e libc++abi.dylib`abort_message + 74
frame #4: 0x380976e6 libc++abi.dylib`default_terminate_handler() + 254
frame #5: 0x386caf7c libobjc.A.dylib`_objc_terminate() + 192
frame #6: 0x380951b2 libc++abi.dylib`std::__terminate(void (*)()) + 78
frame #7: 0x38094d16 libc++abi.dylib`__cxa_rethrow + 102
frame #8: 0x386cae2e libobjc.A.dylib`objc_exception_rethrow + 42
frame #9: 0x2dc8f81e CoreFoundation`CFRunLoopRunSpecific + 642
frame #10: 0x2dc8f58a CoreFoundation`CFRunLoopRunInMode + 106
frame #11: 0x3077a43a UIKit`-[UIApplication _run] + 762
frame #12: 0x307756d8 UIKit`UIApplicationMain + 1136
* frame #13: 0x00058e80 MedicalCodes`main(argc=1, argv=0x27db1cfc) + 116 at main.m:16
(lldb)
以下是我使用断点获得的错误。
if([[segue identifier] isEqualToString:@“ShowDetails”]){ DetailViewController * detailviewcontroller = [segue destinationViewController];
NSIndexPath *myIndexPath = [self.tableView indexPathForSelectedRow];
int row = [myIndexPath row];
detailviewcontroller.DetailModal = @[_Title[row], _Description[row]]; <-- its on this line of code right here.
表示无法识别的选择器发送到实例0x17e6a180 有什么帮助吗?
答案 0 :(得分:5)
添加异常断点,然后运行该项目。在大多数情况下,异常断点将停在导致问题的代码行。
您也可以从Debug&gt;执行此操作。断点&gt;创建异常断点...
答案 1 :(得分:1)
使用NSZombieEnabled = YES;
这可能会为您提供准确的错误报告