SIGABRT 且不确定如何追溯到调用代码
xcode 给我的错误消息和堆栈跟踪似乎不允许我追溯到调用代码。
*** 由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[NSNotificationCenter objectForKey:]:无法识别的选择器发送到实例 0x7b30530” *** 首先抛出调用堆栈: (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) 终止调用抛出异常
我所看到的就是这个....
The error messages and stack trace xcode is giving me don't seem to allow me to trace back to the calling code.
*** 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
And all i see is this....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,从外观上看,您似乎正在将消息“objectForKey”发送到 NSNotificationCenter 的实例,该实例无法响应该消息。如果这不是问题并且调试器太糟糕了,请尝试单步执行有问题的代码部分,找出崩溃的行并发布该行。但请先检查第一件事。
Hmm from the looks of that it seems you are sending the message "objectForKey" to an instance of NSNotificationCenter, which cannot respond to that message. If that is not the issue and the debugger is just being awful try stepping through the portion of code that has the issue to find out what line crashed and post that line, please. But do check the first thing first.