On Running the application on iPhone, Build got failed with the following error on compiling Root.Storyboard. But this failure not happening overtime. This happens randomly.
14:59:57 2016-08-02 14:59:45.730 Interface Builder Cocoa Touch Tool[3825:17239088] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '{objective 0x7fa3cd88fe70: <1:5.34034> + <1:0.0320392>*0x7fa3cbef2f20:UISV-fill-proportionally.negError{id: 6394} + <1:-0.0320392>*0x7fa3cbef2f20:UISV-fill-proportionally.posErrorMarker{id: 6393} + <1:-0.0166546>*0x7fa3cd865df0:UISV-spacing.marker{id: 5980} + <1:-0.0166546>*0x7fa3cd86a290:UISV-canvas-connection.marker{id: 5978} + <1:1>*0x7fa3cd86f760:UISV-fill-proportionally.negError{id: 5717} + <1:-0.0166546>*0x7fa3cd899a00:UISV-spacing.marker{id: 5981} + <1:-1.94859>*0x7fa3cd89bc40:UISV-fill-proportionally.negError{id: 5936} + <1:1.94859>*0x7fa3cd89bc40:UISV-fill-proportionally.posErrorMarker{id: 5935} + <1:0.0333092>*0x7fa3cd8a63e0:UISV-fill-equally.marker{id: 5985} + <1:0.0166546>*0x7fa3cd8a7d30:UISV-canvas-connection.marker{id: 6008} + <1:-0.0166546>*0x7fa3cd8ab0e0:UISV-canvas-connection.marker{id: 6009} + <1:1.94859>*0x7fa3cd8abc30.negError{id: 5906} + <1:0.0166546>*0x7fa3cd8c6a10:UISV-canvas-connection.marker{id: 5976} + <1:-0.0166546>*0x7fa3cd8de630:UISV-fill-equally.marker{id: 5984} + <1:-0.0166546>*0x7fa3cd8eb6f0:UISV-spacing.marker{id: 6040} + <1:1>*0x7fa3cdd1b550.marker{id: 6266}}: internal error. Setting empty vector for variable 0x7fa3cd8701b0.negError{id: 5693}.'
14:59:57 *** First throw call stack:
14:59:57 (
14:59:57 0 CoreFoundation 0x0000000112bc7d85 __exceptionPreprocess + 165
14:59:57 1 libobjc.A.dylib 0x0000000112639deb objc_exception_throw + 48
14:59:57 2 CoreFoundation 0x0000000112bc7cbd +[NSException raise:format:] + 205
14:59:57 3 Foundation 0x000000011220dacc -[NSISObjectiveLinearExpression setPriorityVector:forKnownAbsentVariable:] + 76
14:59:57 4 Foundation 0x00000001123b0c44 __128-[NSISObjectiveLinearExpression replaceVariable:withExpression:processVariableNewToReceiver:processVariableDroppedFromReceiver:]_block_invoke + 297
14:59:57 5 Foundation 0x000000011220a6bf -[NSISLinearExpression enumerateVariablesAndCoefficients:] + 350
14:59:57 6 Foundation 0x00000001123b0b04 -[NSISObjectiveLinearExpression replaceVariable:withExpression:processVariableNewToReceiver:processVariableDroppedFromReceiver:] + 369
14:59:57 7 Foundation 0x000000011220b7ee -[NSISEngine substituteOutAllOccurencesOfBodyVar:withExpression:] + 633
14:59:57 8 Foundation 0x000000011220e789 -[NSISEngine pivotToMakeBodyVar:newHeadOfRowWithHead:andDropRow:] + 330
14:59:57 9 Foundation 0x000000011220c082 -[NSISEngine minimizeConstantInObjectiveRowWithHead:] + 146
14:59:57 10 Foundation 0x00000001123acacf -[NSISEngine _optimizeWithoutRebuilding] + 158
14:59:57 11 Foundation 0x000000011220bc0f -[NSISEngine optimize] + 46
14:59:57 12 Foundation 0x000000011220c42d -[NSISEngine withBehaviors:performModifications:] + 245
14:59:57 13 UIKit 0x00000001103b9adb -[UIView(AdditionalLayoutSupport) _withAutomaticEngineOptimizationDisabledIfEngineExists:] + 58
14:59:57 14 UIKit 0x00000001103ba61e -[UIView(AdditionalLayoutSupport) updateConstraintsIfNeeded] + 254
14:59:57 15 UIKit 0x00000001103aac47 -[UIWindow(UIConstraintBasedLayout) updateConstraintsIfNeeded] + 108
14:59:57 16 UIKit 0x00000001103bb333 -[UIView(AdditionalLayoutSupport) _updateConstraintsAtEngineLevelIfNeeded] + 272
14:59:57 17 UIKit 0x000000010fb6fa96 -[UIView(Hierarchy) _updateConstraintsAsNecessaryAndApplyLayoutFromEngine] + 159
14:59:57 18 UIKit 0x000000010fb4c6f6 -[UIWindow layoutSubviews] + 43
14:59:57 19 UIKit 0x000000010fb7f980 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 703
14:59:57 20 QuartzCore 0x000000011209dc00 -[CALayer layoutSublayers] + 146
14:59:57 21 QuartzCore 0x000000011209208e _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
14:59:57 22 QuartzCore 0x0000000112091f0c _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
14:59:57 23 QuartzCore 0x00000001120863c9 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 277
14:59:57 24 QuartzCore 0x00000001120b4086 _ZN2CA11Transaction6commitEv + 486
14:59:57 25 QuartzCore 0x00000001120b47f8 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 92
14:59:57 26 CoreFoundation 0x0000000112aecc37 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
14:59:57 27 CoreFoundation 0x0000000112aecba7 __CFRunLoopDoObservers + 391
14:59:57 28 CoreFoundation 0x0000000112ae211c CFRunLoopRunSpecific + 524
14:59:57 29 Foundation 0x0000000112222a31 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 267
14:59:57 30 IBFoundation 0x0000000111e8330f -[IBAbstractPlatformTool startServingReceiveChannel:] + 429
14:59:57 31 IBFoundation 0x0000000111e834ee -[IBAbstractPlatformTool startServingWriteDescriptor:readDescriptor:] + 117
14:59:57 32 IBFoundation 0x0000000111e83fea +[IBAbstractPlatformTool main] + 1177
14:59:57 33 Interface Builder Cocoa Touch Tool 0x000000010f96abe7 Interface Builder Cocoa Touch Tool + 3047
14:59:57 34 libdyld.dylib 0x00000001169ab92d start + 1
14:59:57 )
14:59:57 libc++abi.dylib: terminating with uncaught exception of type NSException
14:59:58 Command /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool failed with exit code 255
Thanks in advance.
Related
Scenario
I have a SwiftUI app that has been working perfectly fine.
I upgrade Xcode to 13.2.1 and I'm able to launch the application but when I navigate to a certain part of the application I'm getting this error on device and during SwiftUI preview.
'NSInvalidArgumentException', reason: '-[__SwiftValue set]: unrecognized selector sent to instance 0x600001bd9590'
Feedback / Assistance
Can anyone provide instructions / steps to debug this?
How can I find out what is instance 0x600001bd9590 and who is setting the NSInvalidArgumentException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__SwiftValue set]: unrecognized selector sent to instance 0x600001bd9590'
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/m1/Library/Developer/Xcode/DerivedData/NT-dfyuqrdtadtqdkaxajldzwimkhru/Build/Intermediates.noindex/Previews/NT/Products/Debug-iphonesimulator DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot//System/Library/PrivateFrameworks/PreviewsInjection.framework/PreviewsInjection DYLD_FRAMEWORK_PATH=/Users/m1/Library/Developer/Xcode/DerivedData/NT-dfyuqrdtadtqdkaxajldzwimkhru/Build/Intermediates.noindex/Previews/NT/Products/Debug-iphonesimulator
abort() called
Last Exception Backtrace:
0 CoreFoundation 0x1803e1174 __exceptionPreprocess + 216
1 libobjc.A.dylib 0x180193384 objc_exception_throw + 56
2 CoreFoundation 0x1803f0530 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 CoreFoundation 0x1803e53fc ___forwarding___ + 1408
4 CoreFoundation 0x1803e743c _CF_forwarding_prep_0 + 92
5 UIFoundation 0x18410cc7c -[NSCoreTypesetter _NSFastDrawString:length:attributes:paragraphStyle:typesetterBehavior:lineBreakMode:rect:padding:graphicsContext:baselineRendering:usesFontLeading:usesScreenFont:scrollable:syncAlignment:mirrored:boundingRectPointer:baselineOffsetPointer:drawingContext:] + 3820
6 UIFoundation 0x18410d6c0 -[NSCoreTypesetter _stringDrawingCoreTextEngineWithOriginalString:rect:padding:graphicsContext:forceClipping:attributes:stringDrawingOptions:drawingContext:stringDrawingInterface:] + 1200
7 UIFoundation 0x184107bf0 __NSStringDrawingEngine + 1480
8 UIFoundation 0x184108b24 -[NSAttributedString(NSExtendedStringDrawing) drawWithRect:options:context:] + 128
9 UIKitCore 0x18524a2b4 -[UILabel _drawTextInRect:baselineCalculationOnly:] + 3100
10 UIKitCore 0x18524abb8 -[UILabel _drawTextInRect:] + 248
11 UIKitCore 0x185249330 -[UILabel drawTextInRect:] + 536
12 UIKitCore 0x185300714 -[UIView(CALayerDelegate) drawLayer:inContext:] + 536
13 QuartzCore 0x1883ad940 CABackingStoreUpdate_ + 192
14 QuartzCore 0x1884e0078 invocation function for block in CA::Layer::display_() + 52
15 QuartzCore 0x1884d66dc -[CALayer _display] + 1688
16 QuartzCore 0x1884e8ce4 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 408
17 QuartzCore 0x18843c04c CA::Context::commit_transaction(CA::Transaction*, double, double*) + 516
18 QuartzCore 0x188467860 CA::Transaction::commit() + 684
19 UIKitCore 0x184dc48f4 _afterCACommitHandler + 104
20 CoreFoundation 0x18034ef9c __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
21 CoreFoundation 0x180349724 __CFRunLoopDoObservers + 556
22 CoreFoundation 0x180349c84 __CFRunLoopRun + 976
23 CoreFoundation 0x1803493a8 CFRunLoopRunSpecific + 572
24 GraphicsServices 0x18c03c5ec GSEventRunModal + 160
25 UIKitCore 0x184d937ac -[UIApplication _run] + 992
26 UIKitCore 0x184d982e8 UIApplicationMain + 112
27 SwiftUI 0x1b99bc7f4 closure #1 in KitRendererCommon(_:) + 160
28 SwiftUI 0x1b99bc750 runApp<A>(_:) + 164
29 SwiftUI 0x1b94124f4 static App.main() + 80
30 NT 0x102d46c24 static NTApp.$main() + 100
31 NT 0x102d46d38 main + 76
32 dyld_sim 0x10368dca0 start_sim + 20
33 dyld 0x1033d50f4 start + 520
34 ??? 0x4c15800000000000 ???
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x1c997ca60 __pthread_kill + 8
1 libsystem_pthread.dylib 0x1c99ce380 pthread_kill + 256
2 libsystem_c.dylib 0x1800fe3d8 abort + 120
3 libc++abi.dylib 0x18022de94 abort_message + 128
4 libc++abi.dylib 0x18021fc98 demangling_terminate_handler() + 296
5 libobjc.A.dylib 0x180176e84 _objc_terminate() + 124
6 libc++abi.dylib 0x18022d358 std::__terminate(void (*)()) + 16
7 libc++abi.dylib 0x18022fd98 __cxa_rethrow + 144
8 libobjc.A.dylib 0x1801934d4 objc_exception_rethrow + 40
9 CoreFoundation 0x180349494 CFRunLoopRunSpecific + 808
10 GraphicsServices 0x18c03c5ec GSEventRunModal + 160
11 UIKitCore 0x184d937ac -[UIApplication _run] + 992
12 UIKitCore 0x184d982e8 UIApplicationMain + 112
13 SwiftUI 0x1b99bc7f4 closure #1 in KitRendererCommon(_:) + 160
14 SwiftUI 0x1b99bc750 runApp<A>(_:) + 164
15 SwiftUI 0x1b94124f4 static App.main() + 80
16 NT 0x102d46c24 static NTApp.$main() + 100 (NTApp.swift:10)
17 NT 0x102d46d38 main + 76
18 dyld_sim 0x10368dca0 start_sim + 20
19 dyld 0x1033d50f4 start + 520
I'm new to swift and am finding debugging to be particularly difficult. I"m using RubyMotion if that is relevant. After I log out a user and try to log back in I receive the following log:
2017-04-20 13:56:54.810 nav[8614:3232848] *** Assertion failure in -[UIView _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3600.6.21/NSLayoutConstraint_UIKitAdditions.m:649
2017-04-20 13:56:54.927 nav[8614:3232848] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Impossible to set up layout with view hierarchy unprepared for constraint.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000102ab5d4b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010141421e objc_exception_throw + 48
2 CoreFoundation 0x0000000102ab9e42 +[NSException raise:format:arguments:] + 98
3 Foundation 0x00000001038d466d -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
4 UIKit 0x0000000105a4d57b __120-[UIView(UIConstraintBasedLayout) _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:]_block_invoke_2 + 206
5 UIKit 0x0000000105a4d417 -[UIView(UIConstraintBasedLayout) _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:] + 418
6 UIKit 0x0000000105a4d7e8 -[UIView(UIConstraintBasedLayout) _tryToAddConstraintWithoutUpdatingConstraintsArray:roundingAdjustment:mutuallyExclusiveConstraints:] + 30
7 UIKit 0x0000000105a4d8fa -[UIView(UIConstraintBasedLayout) _tryToAddConstraint:roundingAdjustment:mutuallyExclusiveConstraints:] + 221
8 UIKit 0x0000000105a4dc0e __50-[UIView(UIConstraintBasedLayout) addConstraints:]_block_invoke + 208
9 Foundation 0x000000010385a3b0 -[NSISEngine withBehaviors:performModifications:] + 155
10 UIKit 0x0000000105a4db2f -[UIView(UIConstraintBasedLayout) addConstraints:] + 277
11 nav 0x00000001000d2ae2 __unnamed_64 + 98
12 nav 0x00000001004b495c vm_dispatch + 1372
13 nav 0x00000001004b8511 rb_scope__strain__ + 1313
14 nav 0x00000001009d9135 rb_vm_dispatch + 7221
15 nav 0x00000001004b495c vm_dispatch + 1372
16 nav 0x00000001004b7a3e rb_scope__initialize__ + 238
17 nav 0x00000001009d9135 rb_vm_dispatch + 7221
18 nav 0x000000010092ec57 rb_class_new_instance0 + 855
19 nav 0x00000001009d86e6 rb_vm_dispatch + 4582
20 nav 0x000000010076c1ec vm_dispatch + 1372
21 nav 0x0000000100780bc3 rb_scope__main_layout__ + 275
22 nav 0x00000001009d9135 rb_vm_dispatch + 7221
23 nav 0x000000010076c1ec vm_dispatch + 1372
24 nav 0x0000000100777955 rb_scope__layout__ + 133
25 nav 0x00000001009d9135 rb_vm_dispatch + 7221
26 nav 0x000000010076c1ec vm_dispatch + 1372
27 nav 0x0000000100778496 rb_scope__viewDidLoad__ + 534
28 nav 0x00000001007784ed __unnamed_67 + 13
29 UIKit 0x000000010522aa3d -[UIViewController loadViewIfRequired] + 1258
30 UIKit 0x0000000105231062 -[UIViewController __viewWillAppear:] + 118
31 UIKit 0x000000010525c1d3 -[UINavigationController _startCustomTransition:] + 1290
32 UIKit 0x000000010526ce48 -[UINavigationController _startDeferredTransitionIfNeeded:] + 697
33 UIKit 0x000000010526dfdb -[UINavigationController __viewWillLayoutSubviews] + 58
34 UIKit 0x0000000105464dd7 -[UILayoutContainerView layoutSubviews] + 223
35 UIKit 0x000000010514dab8 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1237
36 QuartzCore 0x0000000104b4ebf8 -[CALayer layoutSublayers] + 146
37 QuartzCore 0x0000000104b42440 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
38 QuartzCore 0x0000000104b422be _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
39 QuartzCore 0x0000000104ad0318 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
40 QuartzCore 0x0000000104afd3ff _ZN2CA11Transaction6commitEv + 475
41 QuartzCore 0x0000000104afdd6f _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 113
42 CoreFoundation 0x0000000102a5a267 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
43 CoreFoundation 0x0000000102a5a1d7 __CFRunLoopDoObservers + 391
44 CoreFoundation 0x0000000102a3ef8e __CFRunLoopRun + 1198
45 CoreFoundation 0x0000000102a3e884 CFRunLoopRunSpecific + 420
46 GraphicsServices 0x0000000107e57a6f GSEventRunModal + 161
47 UIKit 0x0000000105088c68 UIApplicationMain + 159
48 nav 0x00000001000a9fd2 main + 146
49 libdyld.dylib 0x0000000106f1b68d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
What I'm struggling with is trying to find out where the error is in my code from the error logs.
Perhaps I'm spoiled but in ruby I'm used to a filename and line number being given where the error has been caused - is this something I can find out from this log?
Thanks in advance.
Could anyone help me understand why Im getting this error? It seems to be happening when I load one of my view controllers but I can't see why.
What usually causes an error like this?
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITextInputTraits length]: unrecognized selector sent to instance 0x7fbf924828a0'
*** First throw call stack:
(
0 CoreFoundation 0x000000010664ac65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000105f27bb7 objc_exception_throw + 45
2 CoreFoundation 0x00000001066520ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00000001065a813c ___forwarding___ + 988
4 CoreFoundation 0x00000001065a7cd8 _CF_forwarding_prep_0 + 120
5 libswiftCore.dylib 0x0000000107ddf728 _TTSf4g_d___TFSSCfMSSFT12_cocoaStringPSs9AnyObject__SS + 120
6 libswiftCore.dylib 0x0000000107dc01a3 _TFSSCfMSSFT12_cocoaStringPSs9AnyObject__SS + 19
7 Project1 0x00000001054ec3bd _TToFC8ASA_Rank22SettingsViewControllers9ASANumberSS + 61
8 Foundation 0x0000000105abdb53 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 259
9 CoreFoundation 0x0000000106592d50 -[NSArray makeObjectsPerformSelector:] + 224
10 UIKit 0x0000000106d1b4eb -[UINib instantiateWithOwner:options:] + 1506
11 UIKit 0x0000000106b736d8 -[UIViewController _loadViewFromNibNamed:bundle:] + 242
12 UIKit 0x0000000106b73cc8 -[UIViewController loadView] + 109
13 UIKit 0x0000000106b73f39 -[UIViewController loadViewIfRequired] + 75
14 UIKit 0x0000000106b743ce -[UIViewController view] + 27
15 UIKit 0x000000010710132d -[_UIFullscreenPresentationController _setPresentedViewController:] + 65
16 UIKit 0x0000000106b4ed69 -[UIPresentationController initWithPresentedViewController:presentingViewController:] + 105
17 UIKit 0x0000000106b80248 -[UIViewController _presentViewController:withAnimationController:completion:] + 1761
18 UIKit 0x0000000106b826c1 __62-[UIViewController presentViewController:animated:completion:]_block_invoke + 132
19 UIKit 0x0000000106b825e5 -[UIViewController presentViewController:animated:completion:] + 229
20 UIKit 0x0000000106a44d62 -[UIApplication sendAction:to:from:forEvent:] + 75
21 UIKit 0x0000000106b5650a -[UIControl _sendActionsForEvents:withEvent:] + 467
22 UIKit 0x0000000106b558d9 -[UIControl touchesEnded:withEvent:] + 522
23 UIKit 0x0000000106a91958 -[UIWindow _sendTouchesForEvent:] + 735
24 UIKit 0x0000000106a92282 -[UIWindow sendEvent:] + 682
25 UIKit 0x0000000106a58541 -[UIApplication sendEvent:] + 246
26 UIKit 0x0000000106a65cdc _UIApplicationHandleEventFromQueueEvent + 18265
27 UIKit 0x0000000106a4059c _UIApplicationHandleEventQueue + 2066
28 CoreFoundation 0x000000010657e431 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
29 CoreFoundation 0x00000001065742fd __CFRunLoopDoSources0 + 269
30 CoreFoundation 0x0000000106573934 __CFRunLoopRun + 868
31 CoreFoundation 0x0000000106573366 CFRunLoopRunSpecific + 470
32 GraphicsServices 0x000000010a1e0a3e GSEventRunModal + 161
33 UIKit 0x0000000106a438c0 UIApplicationMain + 1282
34 Project1 0x00000001054f70c7 main + 135
35 libdyld.dylib 0x0000000108530145 start + 1
36 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Please ask for any other informations that is helpful
Thanks
You most likely have an Outlet assigned to an element on the view controller you are transitioning to that is no longer connected to your code. This youtube video explains it in more detail.
To hunt down this issue, try right-clicking on all your elements (UILabels, UIViews, UIButton...) with the assistant editor open and cross check to see if the outlet name is referenced in the view controller.
I have tried to do various things to fix this SIGABRT error, I know it's very common but I can't seem to figure it out. Here is my error:
2013-10-09 22:16:41.277 Tap![4895:a0b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<gameViewController 0x9944780> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key tapAction.'
*** First throw call stack:
(
0 CoreFoundation 0x017365e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x014b98b6 objc_exception_throw + 44
2 CoreFoundation 0x017c66a1 -[NSException raise] + 17
3 Foundation 0x0117ac2e -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
4 Foundation 0x010e6f3b _NSSetUsingKeyValueSetter + 88
5 Foundation 0x010e6493 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 267
6 Foundation 0x0114894a -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 412
7 UIKit 0x004cdcd5 -[UIRuntimeOutletConnection connect] + 106
8 libobjc.A.dylib 0x014cb7d2 -[NSObject performSelector:] + 62
9 CoreFoundation 0x01731b6a -[NSArray makeObjectsPerformSelector:] + 314
10 UIKit 0x004cc82e -[UINib instantiateWithOwner:options:] + 1417
11 UIKit 0x0075f38f -[UIStoryboard instantiateViewControllerWithIdentifier:] + 220
12 UIKit 0x0075f988 -[UIStoryboardSegueTemplate _perform:] + 88
13 UIKit 0x0075fa59 -[UIStoryboardSegueTemplate perform:] + 115
14 libobjc.A.dylib 0x014cb874 -[NSObject performSelector:withObject:withObject:] + 77
15 UIKit 0x0022dc8c -[UIApplication sendAction:to:from:forEvent:] + 108
16 UIKit 0x0022dc18 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
17 UIKit 0x003256d9 -[UIControl sendAction:to:forEvent:] + 66
18 UIKit 0x00325a9c -[UIControl _sendActionsForEvents:withEvent:] + 577
19 UIKit 0x00324d4b -[UIControl touchesEnded:withEvent:] + 641
20 UIKit 0x0026b0cd -[UIWindow _sendTouchesForEvent:] + 852
21 UIKit 0x0026bd34 -[UIWindow sendEvent:] + 1232
22 UIKit 0x0023fa36 -[UIApplication sendEvent:] + 242
23 UIKit 0x00229d9f _UIApplicationHandleEventQueue + 11421
24 CoreFoundation 0x016bf8af __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
25 CoreFoundation 0x016bf23b __CFRunLoopDoSources0 + 235
26 CoreFoundation 0x016dc30e __CFRunLoopRun + 910
27 CoreFoundation 0x016dbb33 CFRunLoopRunSpecific + 467
28 CoreFoundation 0x016db94b CFRunLoopRunInMode + 123
29 GraphicsServices 0x036879d7 GSEventRunModal + 192
30 GraphicsServices 0x036877fe GSEventRun + 104
31 UIKit 0x0022c94b UIApplicationMain + 1225
32 Tap! 0x00003add main + 141
33 libdyld.dylib 0x01d72725 start + 0
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
I have looked at the related classes and they do not have any problem. This problem occurs when I try to use a Segue.
I am getting an error while running app with following exception.
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<FavoriteViewController 0x158d30> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key customCell.'
*** Call stack at first throw:
(
0 CoreFoundation 0x314d0987 __exceptionPreprocess + 114
1 libobjc.A.dylib 0x319a149d objc_exception_throw + 24
2 CoreFoundation 0x314d0705 -[NSException dealloc] + 0
3 Foundation 0x31d28b4f -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 182
4 Foundation 0x31d2803b _NSSetUsingKeyValueSetter + 90
5 Foundation 0x31d29da3 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 194
6 Foundation 0x31cdbb17 -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 130
7 UIKit 0x33a8860f -[UIRuntimeOutletConnection connect] + 66
8 CoreFoundation 0x31473fc7 -[NSObject(NSObject) performSelector:] + 18
9 CoreFoundation 0x3147cd51 -[NSArray makeObjectsPerformSelector:] + 388
10 UIKit 0x33a87577 -[UINib instantiateWithOwner:options:] + 586
11 UIKit 0x33a88b39 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 92
12 Fridge 0x0001ab11 -[FavoriteViewController tableView:cellForRowAtIndexPath:] + 192
13 UIKit 0x33907a21 -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 516
14 UIKit 0x339077f3 -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:] + 34
15 UIKit 0x33905d2d -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 936
16 UIKit 0x33904edd -[UITableView layoutSubviews] + 140
17 UIKit 0x338b10cf -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 26
18 CoreFoundation 0x3146ebbf -[NSObject(NSObject) performSelector:withObject:] + 22
19 QuartzCore 0x30a6c685 -[CALayer layoutSublayers] + 120
20 QuartzCore 0x30a6c43d CALayerLayoutIfNeeded + 184
21 QuartzCore 0x30a6656d _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 212
22 QuartzCore 0x30a66383 _ZN2CA11Transaction6commitEv + 190
23 QuartzCore 0x30a89f9d _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 52
24 CoreFoundation 0x31460c59 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 16
25 CoreFoundation 0x31460acd __CFRunLoopDoObservers + 412
26 CoreFoundation 0x314580cb __CFRunLoopRun + 854
27 CoreFoundation 0x31457c87 CFRunLoopRunSpecific + 230
28 CoreFoundation 0x31457b8f CFRunLoopRunInMode + 58
29 GraphicsServices 0x35d664ab GSEventRunModal + 114
30 GraphicsServices 0x35d66557 GSEventRun + 62
31 UIKit 0x338d5329 -[UIApplication _run] + 412
32 UIKit 0x338d2e93 UIApplicationMain + 670
33 Fridge 0x00002d77 main + 70
34 Fridge 0x00002d2c start + 40
)
The error message: Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key customCell.'
... means that your xib is referencing an IBOutlet named "customCell" but your view controller doesn't have that IBOutlet anymore. You either need to remove the customCell reference from your xib or add an IBOutlet property to your view controller named "customCell".