How to find where the error is for "unrecognized selector sent to instance"?

Sometimes my application crashes due to this error log:

-[NSNull floatValue]: unrecognized selector sent to instance 0x3befd090

I didn’t call " floatValue", so how do I determine which exact string could crash the application?

Reproducing an accident requires some specific data from a website that I have no control over, so any ideas to fix this? Thanks.

+4
source share
1 answer

The easiest way is to add an exception breakpoint.

Go to the backsight area and click op de +in the left corner. In the pop-up menu, select Add Exception Breakpoint.

Done , , , , .

+5

All Articles