获取奇怪的调试器消息:断言失败:(cls),函数getName:这是什么? [英] Getting strange debugger message: Assertion failed: (cls), function getName: what is this?

查看:192
本文介绍了获取奇怪的调试器消息:断言失败:(cls),函数getName:这是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从我从Xcode 3.2.3升级到3.2.4和iOS 4.0.1到iOS 4.1 SDK,当我在我的代码中设置一个断点并单步执行指令时,在每个步骤中,调试器将会吐出一个或更多的这行:

Since I upgraded from Xcode 3.2.3 to 3.2.4 and iOS 4.0.1 to iOS 4.1 SDK, when I set a breakpoint in my code and single-step over instructions, at each step, the debugger will spit one or more of that line:

断言失败:(cls),function getName,file /SourceCache/objc4_Sim/objc4-427.1.1/runtime/ objc-runtime-new.m,第3939行

它不会发生在特定的行或具体的指令。我的代码中有几个断点,每次我打其中一个时,调试器开始吐出这些消息。它似乎没有任何有害的影响,因为程序正常工作。当有几十条线路时,在控制台中检索信息非常烦人。我确定他们没有显示任何东西,但我没有发现问题可能是什么,什么说明可能导致它。如果我没有打破断点,那么我看不到任何一条线。我做了几次清理和重建我的项目无效。

It doesn't happen on a specific line or for a specific instructions. I have a few breakpoints in my code and each time I hit one of those, the debugger starts spewing those messages. It doesn't seem to have any detrimental effect as the program works correctly. It's just very annoying to retrieve the information in the console when there are tens of those lines. I'm sure they're not displayed for nothing but I haven't found what the problem might be and what instruction might cause it. If I don't hit a breakpoint, then I don't see any of those lines. I did clean and rebuild my project multiple times to no avail.

有没有人知道这是什么?

Does anybody have any idea what this is?

推荐答案

我遇到这个 - 这就是我发生的原因:我使用
+ localizedStringFromDate:dateStyle:timeStyle:在我的代码在iPhone上工作得很好,但它没有可用的4.0之前的SDK,所以它在iPad上咳嗽。看看你是否打了一些例行程序,或者在SDK中不再可用,或仅在以后的版本中可用。坦白说,我迫不及待地在iPad上等待4.1。

I ran into this - and here's the reason mine happened: I had used +localizedStringFromDate:dateStyle:timeStyle: in my code. Worked fine on the iPhone, but it's not available pre-4.0 SDK, so it coughed on the iPad. See if you're calling some routine that's either no longer available in the SDK, or available only in later versions. Frankly, I can't wait for 4.1 on the iPad!

-Owen

这篇关于获取奇怪的调试器消息:断言失败:(cls),函数getName:这是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆