NSInvalidUnarchiveOperationException due to NSLayoutConstraint


Controller crash with the following error? Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: NSLayoutConstraint One quick solution:: Open the .xib file of that controller. click on the view and go to file inspector in the right pane. deselect auto layout. build and run the application. Works like a charm. 🙂  

NSUnknownKeyException’, reason: ‘[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key keyPath.’


Okay so here is just another annoying error I faced during development. Here is the error log NSUnknownKeyException', reason: '[<UILabel 0x17428340> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key keyPath.' Reason 1: Wrong or expired reference of the View(s) to the IBOutlet with the file owner. In interface builder you linked your … Continue reading NSUnknownKeyException’, reason: ‘[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key keyPath.’

Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[UILabel copyWithZone:]: unrecognized selector sent to instance [some_instance_id]


Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UILabel copyWithZone:]: unrecognized selector sent to instance This could be quite annoying bug for you when you know you have done nothing wrong. And your code is all so neat and clean. Well, it isn't actually. There is apparently no errors for you but when you compile … Continue reading Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[UILabel copyWithZone:]: unrecognized selector sent to instance [some_instance_id]

Android Warning: Exported activity does not require permission


Sometimes even the warnings get annoying because you just can't find anything wrong in your code. While working on an android app, you may encounter this warning so you better get rid of it by just following the easy steps. Usually there are more than one way to debug a bug. All you need to … Continue reading Android Warning: Exported activity does not require permission