Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

harsh27vira

macrumors newbie
Original poster
Jan 4, 2016
2
0
hello guys...
please help me solve this error. i tried all the methods suggested on Stake Overflow but none of them worked.

Code:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIView 0x7fbc805130b0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key inputNumber.'
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010867ff45 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x000000010a3a3deb objc_exception_throw + 48
    2   CoreFoundation                      0x000000010867fb89 -[NSException raise] + 9
    3   Foundation                          0x0000000108a48a6b -[NSObject(NSKeyValueCoding) setValue:forKey:] + 288
    4   UIKit                               0x0000000108f5096f -[UIView(CALayerDelegate) setValue:forKey:] + 173
    5   UIKit                               0x0000000109254a71 -[UIRuntimeOutletConnection connect] + 109
    6   CoreFoundation                      0x00000001085c0a80 -[NSArray makeObjectsPerformSelector:] + 224
    7   UIKit                               0x0000000109253454 -[UINib instantiateWithOwner:eek:ptions:] + 1864
    8   UIKit                               0x000000010902dc16 -[UIViewController _loadViewFromNibNamed:bundle:] + 381
    9   UIKit                               0x000000010902e542 -[UIViewController loadView] + 178
    10  UIKit                               0x000000010902e8a0 -[UIViewController loadViewIfRequired] + 138
    11  UIKit                               0x00000001090730ee -[UINavigationController _layoutViewController:] + 54
    12  UIKit                               0x00000001090739c2 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 462
    13  UIKit                               0x0000000109073b34 -[UINavigationController _startTransition:fromViewController:toViewController:] + 126
    14  UIKit                               0x0000000109074d8d -[UINavigationController _startDeferredTransitionIfNeeded:] + 890
    15  UIKit                               0x0000000109075cea -[UINavigationController __viewWillLayoutSubviews] + 57
    16  UIKit                               0x000000010921bc85 -[UILayoutContainerView layoutSubviews] + 248
    17  UIKit                               0x0000000108f50e40 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 710
    18  QuartzCore                          0x000000010d3e659a -[CALayer layoutSublayers] + 146
    19  QuartzCore                          0x000000010d3dae70 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
    20  QuartzCore                          0x000000010d3dacee _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
    21  QuartzCore                          0x000000010d3cf475 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 277
    22  QuartzCore                          0x000000010d3fcc0a _ZN2CA11Transaction6commitEv + 486
    23  QuartzCore                          0x000000010d3fd37c _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 92
    24  CoreFoundation                      0x00000001085ab947 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    25  CoreFoundation                      0x00000001085ab8b7 __CFRunLoopDoObservers + 391
    26  CoreFoundation                      0x00000001085a0e2c CFRunLoopRunSpecific + 524
    27  UIKit                               0x0000000108e974f5 -[UIApplication _run] + 402
    28  UIKit                               0x0000000108e9c30d UIApplicationMain + 171
    29  Find Prime                          0x000000010849f95d main + 109
    30  libdyld.dylib                       0x000000010aeab92d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
 
Last edited by a moderator:

JWalker1995

macrumors regular
Mar 5, 2011
224
3
hello guys...
please help me solve this error. i tried all the methods suggested on Stake Overflow but none of them worked.

Code:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIView 0x7fbc805130b0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key inputNumber.'
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010867ff45 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x000000010a3a3deb objc_exception_throw + 48
    2   CoreFoundation                      0x000000010867fb89 -[NSException raise] + 9
    3   Foundation                          0x0000000108a48a6b -[NSObject(NSKeyValueCoding) setValue:forKey:] + 288
    4   UIKit                               0x0000000108f5096f -[UIView(CALayerDelegate) setValue:forKey:] + 173
    5   UIKit                               0x0000000109254a71 -[UIRuntimeOutletConnection connect] + 109
    6   CoreFoundation                      0x00000001085c0a80 -[NSArray makeObjectsPerformSelector:] + 224
    7   UIKit                               0x0000000109253454 -[UINib instantiateWithOwner:eek:ptions:] + 1864
    8   UIKit                               0x000000010902dc16 -[UIViewController _loadViewFromNibNamed:bundle:] + 381
    9   UIKit                               0x000000010902e542 -[UIViewController loadView] + 178
    10  UIKit                               0x000000010902e8a0 -[UIViewController loadViewIfRequired] + 138
    11  UIKit                               0x00000001090730ee -[UINavigationController _layoutViewController:] + 54
    12  UIKit                               0x00000001090739c2 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 462
    13  UIKit                               0x0000000109073b34 -[UINavigationController _startTransition:fromViewController:toViewController:] + 126
    14  UIKit                               0x0000000109074d8d -[UINavigationController _startDeferredTransitionIfNeeded:] + 890
    15  UIKit                               0x0000000109075cea -[UINavigationController __viewWillLayoutSubviews] + 57
    16  UIKit                               0x000000010921bc85 -[UILayoutContainerView layoutSubviews] + 248
    17  UIKit                               0x0000000108f50e40 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 710
    18  QuartzCore                          0x000000010d3e659a -[CALayer layoutSublayers] + 146
    19  QuartzCore                          0x000000010d3dae70 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
    20  QuartzCore                          0x000000010d3dacee _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
    21  QuartzCore                          0x000000010d3cf475 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 277
    22  QuartzCore                          0x000000010d3fcc0a _ZN2CA11Transaction6commitEv + 486
    23  QuartzCore                          0x000000010d3fd37c _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 92
    24  CoreFoundation                      0x00000001085ab947 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    25  CoreFoundation                      0x00000001085ab8b7 __CFRunLoopDoObservers + 391
    26  CoreFoundation                      0x00000001085a0e2c CFRunLoopRunSpecific + 524
    27  UIKit                               0x0000000108e974f5 -[UIApplication _run] + 402
    28  UIKit                               0x0000000108e9c30d UIApplicationMain + 171
    29  Find Prime                          0x000000010849f95d main + 109
    30  libdyld.dylib                       0x000000010aeab92d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

Somewhere in your code you must be doing myUIView.inputNumber = myValue
Or
On you storyboard, check all the views one of them will have an unconnected property called inputNumber

Hope this helps
 

1458279

Suspended
May 1, 2010
1,601
1,521
California
Not much of a chance of us helping without some source code and tell us what your app has in it.

Just a call stack makes it pretty hard to debug.

Maybe a screen shot of the storyboard showing some properties.
 

PhoneyDeveloper

macrumors 68040
Sep 2, 2008
3,114
93
Your storyboard or nib has a reference to an IBOutlet named inputNumber that doesn't exist. Right click on the view controller in the storyboard/nib and the black HUD window will appear showing the IBOutlets. Remove the inputNumber IBOutlet.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.