Reputation: 42173
I am getting the following error:
[__NSCFNumber length]: unrecognized selector sent to instance
I understand what the error means, but I am not able to find where it is coming from. Turning on the All Exceptions
breakpoint is not helping, and it is not showing me what line and file the error is coming from. Normally it does.
Wasted 4 hours trying manual breakpoints with no luck. Any idea how I can find this?
Upvotes: 1
Views: 96
Reputation: 42173
I figured it out. The API that I am using changed a string value to a number, so an NSString
that I had for one of my objects was getting set to an NSNumber
instead of a string. Then, later in my code that was trying to be set to a label. This caused the crash.
Upvotes: 2