I'm getting an assertion failure from a UIKit function in my iPhone app. The error message looks a bit like this:
2010-10-27 02:31:49.058 MyProgram[114:207] *** Assertion failure in <some random UIKit function>, <location in UIKit source code>
The exact error isn't really important, but my problem is just that the message is a bit short on actionable information. The text of the expression being tested isn't provided, and of course I don't have any of the source code.
I've already got breakpoints on the magic functions -[NSException raise]
and objc_exception_throw
, and that's not much more help than just seeing the message -- it makes it easier to work out where in one's own code the erroneous call comes from, but aside from that... nothing. There's no debug info for any of the system functions, so you can't print out arguments and the like, and none of the registers are pointing to anything obvious.
I'm sure this won't be the last time that I get some assertion that's being hit for no obvious reason so I'd love to know if there's anything I can do in this sort of case to get more information...