I have this weird crash that only happens when running the app on the device (doesn't happen in the Simulator). It seems like the problem surfaces out of nowhere, as I haven't changed anything on that particular class. I had the very same issue a few days ago, and I ended up fixing it by duplicating the class, renaming it, and changing the referenced class — I haven't changed a single bit of code.
So I'm trying to understand why it's doing this. I've read somewhere that usually you get this console error when the object isn't a subclass of NSObject
(but it is!). Here's the exact console error message:
*** NSInvocation: warning: object 0x679e0 of class 'FFProximityPickerView' does not implement methodSignatureForSelector: -- trouble ahead
*** NSInvocation: warning: object 0x679e0 of class 'FFProximityPickerView' does not implement doesNotRecognizeSelector: -- abort
And then it crashes.
I'd be very thankful for anyone who can help me on this.
EDIT ----------------
This happened twice after I posted the issue. In the first case, I re-added the classes to the project and no more crashing. In the second case, I fixed all the warnings in the class that was crashing and it solved it. Will keep watching, but my guess so far is that I'm not fixing the warnings (I always tend to fix them all at once later)
If this ocurring when call a class method try extend your class with NSObject like this:
@interface sampleClass : NSObject
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With