iOS nib issue, causing crash - ios

I have a rather peculiar error in my app
It only just started happening after it being fine for so long, all my nibs are wired up correctly from what I can see
Any other advice would be greatly appreciated
The error is as follows
2012-07-06 15:07:22.761 xxxxx[681:f803] * Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key MyTableView.'
* First throw call stack:
(0x1907022 0x1b64cd6 0x1906ee1 0x11df022 0x1150f6b 0x1150edb 0x116bd50 0xa5371a 0x1908dea 0x18727f1 0xa5226e 0xa53eb7 0x830ce1 0x830ff8 0x83017f 0x83f183 0x83fc38 0x833634 0x1f4cef5 0x18db195 0x183fff2 0x183e8da 0x183dd84 0x183dc9b 0x82fc65 0x831626 0xe544 0x2255)
terminate called throwing an exception
If theres anything I can do to provide extra please let me know
Thanks all

This means that you have an outlet defined somewhere in your xib called 'MyTableView' and there is no property by that name.
Check all of your outlets!

Related

NSUnknownkey exception not raised everytime at the same place in code , Why?

I have a ViewController which has a corresponding .xib for view. Now in that .xib file there are certain UILabels which DO NOT exist in header file, meaning that they were removed from header but still appear yellow(warning) in .xib.
When I run this code, it sometimes runs fine but sometimes it crashes with following error :
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key messagesLabel.'
I know the solution but what I want to understand is why is the code not crashing everytime?
Attached is the screenshot of .xib file

Updated to Xcode5 simulator through get SIGABRT Error

An app I recently started and working its keeps crashing with a SIGABRT message. The general message at the top of the debugger says:
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIView 0xb651580> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key parentEmail.'
... At the the bottom it says:
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Let me know if the "first throw call stack" info is necessary to solve this one.
Check and make sure that you didnt previously have a button/text field/label previously linked with an action, then deleted that item. The link still exists. Check and make sure that all your links match to existing items.
Usually this comes from an outlet link inside a xib with no corresponding class variable.
Did you remove a variable from a class without removing the link inside the xib?

This class is not key value coding-compilant for the key optionsSection

I am a newcomer in developing. I make my project with TabBar. When I run my project on iPhone Simulator I can see FirstViewController. When I put on my Second Controller Icon on TabBar, project crashes and give me that issue.
2013-07-05 12:31:16.238 MyProject[26912:c07] * Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key optionsSection.'
* First throw call stack:
(0x1d76012 0x1529e7e 0x1dfefb1 0xcc5e41 0xc475f8 0xc470e7 0xc71b58 0x37b019 0x153d663 0x1d7145a 0x379b1c 0x23e7e7 0x23edc8 0x38d28e 0x23eff8 0x23f232 0x2608c9 0x260704 0x25ebda 0x25ea5c 0x260647 0x153d705 0x1612c0 0x161258 0x383ff4 0x153d705 0x1612c0 0x161258 0x222021 0x22257f 0x222056 0x387af9 0x153d705 0x1612c0 0x161258 0x222021 0x22257f 0x2216e8 0x190cef 0x190f02 0x16ed4a 0x160698 0x1896df9 0x1896ad0 0x1cebbf5 0x1ceb962 0x1d1cbb6 0x1d1bf44 0x1d1be1b 0x18957e3 0x1895668 0x15dffc 0x292d 0x2855)
libc++abi.dylib: terminate called throwing an exception
(lldb)
Please, give me some solutions of this problem.
If you have provided a key in interface builder to some UILabel or any such UI instance of that missing key and then removed,that causes that error. Ctrl click the file's owner of view controller and remove the missing key(key with a yellow cross mark) from there.
Its the one of the answers I posted here on this SO thread whose problem looks just like yours.

My app crashing immediately when compiled

My app crashing immediately when compiled, below is the error I'm receiving.
2013-07-02 18:39:20.272 RecipeV6[41361:c07] *** Terminating app due
to uncaught exception 'NSUnknownKeyException', reason:
'[ setValue:forUndefinedKey:]: this class is
not key value coding-compliant for the key search.' *** First throw
call stack: (0x1c97012 0x10d4e7e 0x1d1ffb1 0xb80e41 0xb025f8 0xb020e7
0xb2cb58 0x236019 0x10e8663 0x1c9245a 0x234b1c 0xf97e7 0xf9dc8 0xf9ff8
0xfa232 0xfa4da 0x1118e5 0x1119cb 0x111c76 0x111d71 0x11289b 0x1129b9
0x112a45 0x21820b 0x692dd 0x10e86b0 0x2293fc0 0x228833c 0x2293eaf
0x1082bd 0x50b56 0x4f66f 0x4f589 0x4e7e4 0x4e61e 0x4f3d9 0x522d2
0xfc99c 0x49574 0x4976f 0x49905 0x52917 0x1696c 0x1794b 0x28cb5
0x29beb 0x1b698 0x1bf2df9 0x1bf2ad0 0x1c0cbf5 0x1c0c962 0x1c3dbb6
0x1c3cf44 0x1c3ce1b 0x1717a 0x18ffc 0x2b2d 0x2a55 0x1)
libc++abi.dylib: terminate called throwing an exception
Can anyone help me debug this or point me in the right direction?
Check all UI elements (right mouse click) and IBOutlets connected in your XCode. Some reference problems will be assigned with a Warning icon (see Figure). Clean it, solve the references, misses classes or objects and rebuild the code!

How do I fix this uncaught exception error

I am not even sure how to search for this one I created a IBOutlet in storyboard and did the control drag to create the linking and gave it a variable name. There lies the problem I mistyped the variable named so i went in to the corresponding .h file and deleted the entry went back into storyboard and did the drag to the .h file and re-created the variable and the link this time I typed the variable name correctly. Now I get this uncaught exception error setValue:for undefined key( and it shows the misspelled variable I deleted.
I have since redeleted the good variable
ran a clean from the tools menu
closed the project and reopened it
if I do not have any variable I get the error and it points to what was the good variable name if I have the good variable loaded then I get the error pointing to the bad variable name.
ARRARAGGGHH
Things like this have happened before and I think it has something to do with XCode itself but I can't figure out how to fix it.
Currently I am running the the latest version of Xcode and my app project is based mainly on iOS6 if that helps any
the variables in question are
detailGraphic <---good
detailGrpahic <---bad
here is the message I see in the log when I have the good variable in place
013-06-02 11:42:22.146 IMOB[35446:907] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<DetailViewController 0x1cdcfe80> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key detailGrpahic.'
*** First throw call stack:
(0x326352a3 0x3a35d97f 0x32634f99 0x32ea21d9 0x32e9df2b 0x325bb61b 0x345da31d 0x345d9b9b 0x344d203d 0x3445c46d 0x344b114b 0x344b1091 0x344b0f75 0x344b0e99 0x344b05d9 0x344b04c1 0x3449eb93 0x2991c33 0x3449e833 0x344ff25d 0x34581f81 0x32f43277 0x3260a5df 0x3260a291 0x32608f01 0x3257bebd 0x3257bd49 0x361542eb 0x34491301 0xb3cdd 0x3a794b20)
libc++abi.dylib: terminate called throwing an exception
here is the message I see in the log when I do not have either variable
2013-06-02 12:13:07.640 IMOB[35503:907] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<DetailViewController 0x1dd78dc0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key detailGraphic.'
*** First throw call stack:
(0x326352a3 0x3a35d97f 0x32634f99 0x32ea21d9 0x32e9df2b 0x325bb61b 0x345da31d 0x345d9b9b 0x344d203d 0x3445c46d 0x344b114b 0x344b1091 0x344b0f75 0x344b0e99 0x344b05d9 0x344b04c1 0x3449eb93 0x2974c33 0x3449e833 0x344ff25d 0x34581f81 0x32f43277 0x3260a5df 0x3260a291 0x32608f01 0x3257bebd 0x3257bd49 0x361542eb 0x34491301 0x94da5 0x3a794b20)
libc++abi.dylib: terminate called throwing an exception
Check the Connections Inspector (Cmd + option + 6) for this element in your Storyboard. You will see that it is connected (Referencing Outlets) to something that doesn't exist anymore. Undo that connection (click on the X for it) and you should be fine.

Resources