connection error outlet - ios

I can't create any connection of objects in my class, is there any way to see how the objects are connected in my class?. The Xcode gives me this error:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<VistaInicio 0x68879e0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key myButton.

There is no myButton outlet in the VistaInicio class. Yet something in some xib is connected to it (probably it was connected before you removed this outlet). You need to go through your Interface Builder files and remove the broken connection.

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

Exception error iOS [duplicate]

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.

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?

Resources