This question already has answers here:
Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error?
(79 answers)
Closed 6 years ago.
This is the error message received in XCode:
2016-04-24 19:10:59.020 Bumble Bee[7286:421679] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<Bumble_Bee.LoginController 0x7fc723db1ee0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key LoginTextField.'
The app was working fine until I added a new Swift file and defined a new custom view controller class named "LoginController".
Check for the missing outlet at Interface. In this case, you may have an wrong outlet reference at UIViewController's nib file like this.
Open Interface builder, press right button to check outlets.
Related
This question already has answers here:
Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error?
(79 answers)
Closed 5 years ago.
I got this error after running my app, can anyone tell me what caused it?
2017-07-30 16:42:38.066 MyDiscountApp[1354:264950] *** Terminating app. due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key button.'
In the storyboard/nib file of the ViewController class, you have assigned an object with the name button to the class, but in the ViewController class, you have not defined the button or you may have defined it but then deleted it and forgot to remove the connection from nib/storyboard.
You probably made an Outlet (connection of the button between your Storyboard and ViewController class) and then deleted the outlet in the code.
You also need to delete the connection in Storyboard. See the screenshot below to see how to do it:
This question already has answers here:
Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error?
(79 answers)
Closed 6 years ago.
2016-05-11 16:21:42.262 tech[3889:176910] Unknown class ViewController in Interface Builder file.
2016-05-11 16:21:42.336 tech[3889:176910] Unknown class LoginViewController in Interface Builder file.
2016-05-11 16:21:42.372 tech[3889:176910] * Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key loginBtn.'
* First throw call stack:
please help me, i know this question is already asked here(Xcode 6 Strange Bug: Unknown class in Interface Builder file) but still i am not able to solve my problem, please help:(
If you have deleted referencing outlet or action method of button from code the select that button from interface builder and open connection inspector and from referencing outlet or action close that connection.
This question already has answers here:
Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error?
(79 answers)
Closed 7 years ago.
My app crashes on launch with the following error:
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key storyboardName.'
This normally happens when you previously had an IBOutlet connection from your storyboard scene to it's corresponding viewController and at some point you removed the outlet from the scene or viewController and did not remove the connection. Hence the error.
Either reconnect it or remove the connection completely (in code and on the storyboard )
This question already has answers here:
Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error?
(79 answers)
Closed 8 years ago.
Hi folk I am trying to solve this error
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: ' [<ProfiloViewController 0x8d54ec0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key nomeTxt.'
[..]
libc++abi.dylib: terminating with uncaught exception of type NSException
I have not a method called setValue.. I can't figure out what's wrong
Thanks for your help.
This error occur when you are accessing IBOutlet or IBAction which is not properly connected to File's Owner so, First check your all the connections in Interface Builder OR (Open the xib, select File's Owner and click on the "Connection Inspector") Look at all outlets, any one has ! ('s) that means it is missing outlet.
This is probably due to you added an IBOutlet called nomeTxt and deleted it later. So that link might be broken now. Check your xib/storyboard connections.
This question already has answers here:
Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error?
(79 answers)
Closed 7 years ago.
My application is going to crash for a reason I don't know.
I am getting an error like this:
" Terminating app due to uncaught exception 'NSUnknownKeyException',
reason: '[ setValue:forUndefinedKey:]:
this class is not key value coding-compliant for the key
viewController."
This erro mainly appears when the connections of the XIB's file's owner are broken. You check this in the connections tab of the file's owner. There will be little exclamation mark at the right.