iOS runtime exception - ios

I am creating an iOS 6 application with storyboard and ARC.
Yet I receive this runtime exception:
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewController 0x71b4c00> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key switchButton.'
*** First throw call stack:
(0x1c8e012 0x10cbe7e 0x1d16fb1 0xb78711 0xaf9ec8 0xaf99b7 0xb24428 0x2300cc 0x10df663 0x1c8945a 0x22ebcf 0xf3e37 0xf4418 0xf4648 0xf4882 0x43a25 0x43dbf 0x43f55 0x4cf67 0x10fcc 0x11fab 0x23315 0x2424b 0x15cf8 0x1be9df9 0x1be9ad0 0x1c03bf5 0x1c03962 0x1c34bb6 0x1c33f44 0x1c33e1b 0x117da 0x1365c 0x25dd 0x2505)
libc++abi.dylib: terminate called throwing an exception
(lldb)
Before there been 'switchButton' but I have removed it from GUI, but yet it is pointing to it. I performed cleaning of project too.

Has been fixed by removing switchButton from Outlets palet.

Related

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?

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.

Black screen after build on a iOS 3 project

I have this iOS project for the iPhone written in Xcode 3.2.5 which worked fine under the simulator. But it doesnt work on the latest version of Xcode for some reason. I get this error when I compile it:
pinField is a text field by the way.
Any idea whats going on?
2012-08-29 01:54:46.232 Proj[3545:c07] * Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key pinField.'
* First throw call stack:
(0x18a9022 0x127dcd6 0x18a8ee1 0xd3022 0x44f6b 0x44edb 0x5fd50 0x5a571a 0x18aadea 0x18147f1 0x5a426e 0x5a5eb7 0x382ce1 0x382ff8 0x38217f 0x391183 0x391c38 0x385634 0x1d9bef5 0x187d195 0x17e1ff2 0x17e08da 0x17dfd84 0x17dfc9b 0x381c65 0x383626 0x1d8a 0x1cd5)

iOS nib issue, causing crash

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!

Resources