【发布时间】:2011-10-25 08:11:28
【问题描述】:
我在调试我的 xcode 项目时遇到问题。 当我的应用程序崩溃时,我会得到一个无法读取的堆栈跟踪,如下所示:
2011-10-25 10:03:29.966 fruehstueck[2541:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
*** First throw call stack:
(0x352918bf 0x303ce1e5 0x351e620f 0x2c381 0x46f6d 0x3138f7ff 0x3139bc39 0x3139baa9 0x3139b98f 0x3139b211 0x3139af53 0x3138f673 0x3138f349 0x3a347 0x3aa87 0x351eb435 0x3147473f 0x3137050f 0x3136ff01 0x313564ed 0x31355d2d 0x3717be13 0x35265553 0x352654f5 0x35264343 0x351e74dd 0x351e73a5 0x3717afed 0x31384743 0x2e01 0x2dc0)
代码本身并没有在我的源代码中停止,而是在接收到 SIGBART 信号的“int retVal = ...”行中。
int main(int argc, char *argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
谁能告诉我是否可以取回我用过的堆栈跟踪,至少我可以在哪里查找我的应用程序在哪一行崩溃了?
提前谢谢, 特立独行
【问题讨论】:
标签: iphone objective-c xcode ipad