SIGABRT并不确定如何追溯到调用代码

时间:2011-10-20 02:51:32

标签: objective-c xcode exception sigabrt

错误消息和堆栈跟踪xcode让我似乎不允许我追溯到调用代码。

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNotificationCenter objectForKey:]: unrecognized selector sent to instance 0x7b30530' *** First throw call stack: (0x2b82052 0x226ed0a 0x2b83ced 0x2ae8f00 0x2ae8ce2 0x59e2b 0x59250 0x13f35 0x13c84 0x2b83ec9 0x10f35c2 0x10f355a 0x1198b76 0x119903f 0x11982fe 0x1118a30 0x1118c56 0x10ff384 0x10f2aa9 0x2614fa9 0x2b561c5 0x2abb022 0x2ab990a 0x2ab8db4 0x2ab8ccb 0x2613879 0x261393e 0x10f0a9b 0x20ad 0x2025 0x1) terminate called throwing an exception

我所看到的就是这个......

enter image description here

1 个答案:

答案 0 :(得分:1)

从外观上看,您似乎正在将消息“objectForKey”发送到NSNotificationCenter的实例,该实例无法响应该消息。如果这不是问题并且调试器只是非常糟糕,请尝试逐步解决有问题的代码部分,以找出哪条线崩溃并发布该行。但请先检查第一件事。