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.
I got this message when running the app:
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<examSelf 0x6854ea0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key examQBodyTextView.'
The funny thing is I removed all of the related things with "examQBodyTextView" from the code since they are not needed anymore.
Note: I'm using storyboards.
One of the XIBs in the Storyboard or elsewhere has a hanging reference to examQBodyTextView.
Its blowing up when the View instantiates.
Go through your XIB's and look for an object, mostly likely a Files Owner which has a yellow triangle next to its connection when you right click it. Disconnect that and you should be OK.
Related
when i try to init my controller from storyboard in code I have an error : "
Missing proxy for identifier UpstreamPlaceholder-Kat-VH-9Yv.
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIProxyObject 0x7fad23db07f0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key containerView".
I already deleted in storyboard file and re-create my containerView with all connections & referents but its didn't help. Also I try to delete APP from simulator, change simulator, clean project and restart Xcode(8.0).
Check if you using Storyboard references
If YES - remove them and use push/present from code.
I already had similar situation and references was a reason of crashes. I don't know why, but sometimes adding them in one place can lead to crash in absolutely another without any connection. Only using step-by-step restore I found a reason
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.
Sorry for asking such an easy question, but im a beginner
I was following a tutorial on building apps.
I was creating a button, but i accidently named it wrong, i named it instead of when creating the outlet. I named it right though when i created the action. I ran my app and it failed, because my instances called on , not (at least i think thats why my app crashed. So deleted the outlet and and the automatic code xcode writes for the outlet, i remade the outlet and named it right this time. But now when i run my app it terminates, heres the report:
2012-08-21 20:42:07.602 FieldButtonFun[973:c07] * Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key theNutton.'
* First throw call stack:
(0x14b2022 0xeb2cd6 0x14b1ee1 0x9c3022 0x934f6b 0x934edb 0x94fd50 0x23771a 0x14b3dea 0x141d7f1 0x23626e 0xdc1fc 0xdc779 0xdc99b 0x3b401 0x3b670 0x3b836 0x4272a 0x13596 0x14274 0x23183 0x23c38 0x17634 0x139cef5 0x1486195 0x13eaff2 0x13e98da 0x13e8d84 0x13e8c9b 0x13c65 0x15626 0x271d 0x2685)
terminate called throwing an exception
I have no idea what went wrong and i dont understand the error report at all. I thought i already deleted all the automatic code Xcode generated when i created the outlet and remade it. Could anyone help me and find out what could have went wrong?
I could rebuild this app from scratch but i want to understand why this went wrong, for future reference.
Xcode cannot find the value for the key theNutton in the class FieldButtonFun.
It's hard to say what's wrong without see the actual code. But in most cases, there could be a bad connection in the XIB file. Please check the XIB, ctrl-click the File's Owner, see if there is any yellow warning.
Click on your .xib then you will see the files'Owner on top right click on it and check you have any connection in yellow if you have then please click on cross button(X) and from xib right click and drag connection to filer'owner from your uibutton to make action(method)connection.
Then right click and drag from filer'owner to IBOutlet(the uiobject you declare as IBOutlet in your interface).
I'm trying to realize an universal application (for iPhone/iPad), and I'd like to use the same UIViewController to set up the behaviour for both of the devices.
I got a surprising error at launch time, which is :
2010-07-15 11:31:03.420 AppUniverselle[2761:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x7000670> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key myLabel.'
2010-07-15 11:31:03.421 AppUniverselle[2761:207] Stack: (
29291611,
2421585161,
...
2727445,
2764719,
8884,
8738
)
I can't figure out where I failed. Furthermore, to avoid any typo problem, I restarted the project, but it ends on the same error.
The main surprising point is that the application works fine on the iPad simulator, but not on the iPhone one. Perhap's there is a problem with the iPhone simulator ?
Does someone know the answer of this question or ever heard about that kind of problem ?
It looks like you have an outlet called myLabel in your NIB file, but there's no such outlet in your view controller instance.
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.
Im new im making in making iPhone apps so i have no idea what this error means ?
I saw another post with this error but i couldn't figure out how to get it right..
i get this error:
Terminating app due to uncaught exception
'NSUnknownKeyException', reason: '[
setValue:forUndefinedKey:]: this class is not key value coding-compliant for
the key ImageView.'
and i have no clue what this means ? 0.o
can some help me here ?
Thanks!
You might have changed the name of the IBOutlet your nib file refers to.
Check each connection in your nib file to see what it references
Search in your code for that reference to confirm it's there.
Check your nib to see if you have an outlet or action hooked up to a property that no longer exists in the view controller.
I ran into this issue after deleting an object I created in Interface Builder. Deleting the object did not erase all of the code artifacts it had produced.
Here is how I removed the unwanted information in XCode 4.3:
Ctrl + Click the interface builder file, Open As -> Source Code
Press Cmd + F to search for "imageView"
Delete the corresponding XML element. For example, you might erase this entire block of text:
<outlet property="imageView" destination="9W1-Bu-YFJ" id="9xu-Y0-uYk"/>
Repeat steps 2-3 as necessary
You're probably missing the #synthesize for imageView.
The console only says this, and the app won't get past Default.PNG without crashing
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<Simple_RSSAppDelegate 0x5248d0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key viewController.'
2009-08-08 22:23:54.135 Simple RSS[13199:20b] Stack: (
2514415595,
2485665339,
2514414353,
2453313768,
2453312334,
2453856193,
818019035,
2514369317,
818013737,
818022028,
816113908,
816149067,
2453391502,
2513918197,
2513918632,
827745792,
827745989,
816114848,
816160924,
11212,
11066
)
PLEASE HELP ME OUT !!!!!!!!!
There's no viewController property in your app delegate but you still use it from a nib file.
Well, without more info, the error sounded vaguely familiar. This write-up may help you out in getting this resolved.