gpt4 book ai didi

crash - 无法识别的选择器 +[AppDelegate count] - 应用程序在 NSPropertyListSerialization 调用时崩溃

转载 作者:行者123 更新时间:2023-12-02 10:28:29 26 4
gpt4 key购买 nike

lldb 说 +[AppDelegate count]:无法识别的选择器发送到类 0xe6a0

在行读取时:NSDictionary *soundDataPList = [NSPropertyListSerialization propertyListWithData:dataFromPList options:NSPropertyListImmutable format:NULL error:&error];

这似乎是随机发生的。我运行了代码并且它起作用了。我再次运行了代码,现在我无法通过这个调用。该电话已经运行了好几天,经过数百次运行。它只在程序开始时执行一次。这一切都是在升级到 Xcode 4.3.1 并切换到 lldb 调试器后发生的。我没有在 AppDelegate 上编写对消息 count 的单个调用。

最佳答案

我知道您可能已经继续前进,但我也遇到了同样的问题。我不知道到底是什么原因造成的,但我怀疑此时 XCode 4.x 或 LLDB 存在问题。也许调试 32 位代码,这就是我正在做的事情,想知道您是否也是如此。

无论如何,如果我切换到 GDB,问题就会消失。之后就彻底消失了。

关于crash - 无法识别的选择器 +[AppDelegate count] - 应用程序在 NSPropertyListSerialization 调用时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9656424/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com