When I bring up console after my iPhone app crashes, it often says \"unrecognized selector sent to instance 0x blah blah blah.\" How can I find out what variable this is?
In gdb you could type
po 0x12345678
to print the -description
of the object at that address. But this info is seldom useful. You should instead check the backtrace of the exception first, which can locate the line of code that causes the problem.
It's very helpful to create an Exception breakpoint, and with Xcode 7.3, it's never been easier. This will help you find the line of code causing an exception.
Run your code...whenever you get a "unrecognized selector sent to instance 0x blah blah blah," the debugger will stop on the line that's causing the problem.