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

发布于 2024-12-11 07:49:56 字数 582 浏览 0 评论 0原文

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....

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

jJeQQOZ5 2024-12-18 07:49:56

嗯,从外观上看,您似乎正在将消息“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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文