I recently deleted the xib for a particular UIViewController subclass. However, since then I have been getting the following error on device only, and not simulator:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<CustomWebViewController 0x192494d0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key btnBack.'
I had set btnBack as an IBOutlet before in the XIB, and have since removed that property.
The XIB is deleted and I have cleaned the project countless times, but this issue still persists.
How can I go about finding where in my code this property is being set, or cleaning up this issue in XCode?
EDIT: To make this clear:
- The xib used to exist, but has since been deleted.
- All IBOutlet properties have been deleted as well.
- The instantiation of the viewController happens using only code.
- If I had not deleted the properties then this would not have happened.
- This is probably an XCode bug, and I am hoping someone has faced this issue as well and solved it.