Updated to Xcode5 simulator through get SIGABRT Error - ios

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?

Related

NSUnknownKeyException for a UIButton. Correctly added referencing outlets and corresponding function

I am facing an NSUnknownKeyException for a back button present on a Storyboard, i.e. FastGazeExtension. I have correctly connected the back button to the UIButton outlet property in the controller, i.e. backBTN_FGE, and referenced an action function, i.e. backToWebPageMenu for the back button that wouldn't do anything for now.
Additionally, none of the referencing outlets show any inactive connections. How can I solve the following exception:
2022-05-02 19:13:22.836066-0400 Application1[12433:4224720] [Storyboard] Unknown class _TtC8EApplication118FastGazeController in Interface Builder file.
2022-05-02 19:13:22.839695-0400 Application1[12433:4224720] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x137ecdef0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key backBTN_FGE.'
*** First throw call stack:
(0x19a88e86c 0x1af8a7c50 0x19a7965c8 0x19bad8f58 0x19cb17dd8 0x19ce54fa4 0x19a76e0c8 0x19ce50d6c 0x19cb1f8c0 0x19cb1fc7c 0x19cb20334 0x19ca0d5c0 0x19ca00798 0x19cb32750 0x19cb33a6c 0x19cb33dcc 0x19cb339b8 0x19cb33ea8 0x104bd4ea4 0x104b165f4 0x104b16710 0x1a7081270 0x1a71718b4 0x1a717f888 0x1a717f6fc 0x1a744e0a0 0x1a6e6da1c 0x1a71a25dc 0x1a6e50c4c 0x1a6e50490 0x1a4b795e0 0x1a4b7a2c8 0x19a80a76c 0x19a80a668 0x19a809960 0x19a803a8c 0x19a80321c 0x1b23cd784 0x19d243ee8 0x19d24975c 0x104b1974c 0x19a4c36b0)
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x137ecdef0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key backBTN_FGE.'
terminating with uncaught exception of type NSException
FastGazeController: Controller associated with the Storyboard.
Connections for the key under consideration:
All referencing outlets in the storyboard:
Note: I have copied this storyboard in my application from another application.
Go to your controller in storyboard. Delete the class name "ie: FastGazeController". Type it again and press enter.
Also check if you added the copied files to the target.
The first line of the warning/error stated:
2022-05-02 19:13:22.836066-0400 Application1[12433:4224720] [Storyboard] Unknown class _TtC8EApplication118FastGazeController in Interface Builder file.
The Interface Builder couldn't find the controller file and all of the subsequent referencing outlets were marked as not key-value coding-compliant.
After digging into the problem for some time, I found out that the target membership for folder (A) containing the controller file(B) included my application. However, target membership was not visible for the controller file itself. When I deleted folder A and added a new swift file(C) inside another folder that hadn't any visible target membership associated with it, and included logic of file B inside this new file/controller (C), it started working.
Note: I included my application directly as a target member of file C. I associated file C with the storyboard that I was working on.
Later on, I didn't face any issues with referencing.

Error: Terminating app due to uncaught exception 'NSUnknownKeyException'

After run application and click button, which is connected to next controller I get this error:
2016-04-26 12:49:32.743 Kalkulator[7401:159800] Missing proxy for identifier UpstreamPlaceholder-oFL-gV-w1Q
2016-04-26 12:49:32.744 Kalkulator[7401:159800] Missing proxy for identifier UpstreamPlaceholder-ufI-Y0-ejo
2016-04-26 12:49:32.753 Kalkulator[7401:159800] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key searchAnything.'
I don't have (and I didn't have) any "searchAnything". searchAnything is in another group/project. There I don't have any error.
Solutions from:
Terminating app due to uncaught exception 'NSUnknownKeyException' : iOS app crash
and
What does this mean? "'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X"
didn't help me.
I don't know how to add all project here so I sent my mini-project-from-tutorial to sendspace
Go to storyboard and check whether the outlet connection is with Exclamation symbol if so remove it and then give proper connection to get it done.You have to select the appropriate viewcontroller which is getting crash.
This is because some outlet in the ViewController that you loading on click of button is not perfectly set. Please check for the following -
Main view outlet may not set
Any of the UIObject, may have double outlet(may be you change the object name and format to remove last outlet from the connection Inspector)
Push segue is deprecated from iOS 8.0 and later.
Temporary solution:
Change your Deployment Target to 9.0 and it will work.
Permanent Solution:
Create a new Xcode project copy all files except storyboards from existing project to new project and design the storyboard as per the existing one from the beginning.set your deployment target to iOS 8.0

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.

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.

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