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.
Related
I'm trying to get a particle effect across my whole background in storyboards using a SpriteKit view that I added but this keeps making my app crash. I tried to add it by code but this aswell crashed my app and I don't really know what to make out of the error message as I can't find much about it on the internet...
I linked my SpriteKit view with my 'MyParticle.sks' file
Full error message:
2021-06-23 14:23:28.897788+0200 Project-drink[31447:7030317] Metal API Validation Enabled
2021-06-23 14:23:29.348537+0200 Project-drink[31447:7030317] -[SKEmitterNode scaleMode]: unrecognized selector sent to instance 0x6000007b9a40
2021-06-23 14:23:29.356132+0200 Project-drink[31447:7030317] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SKEmitterNode scaleMode]: unrecognized selector sent to instance 0x6000007b9a40'
*** First throw call stack:`0 CoreFoundation 0x00007fff20422fba __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff20193ff5 objc_exception_throw + 48
2 CoreFoundation 0x00007fff20431d2f +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 UIKitCore 0x00007fff246f60f1 -[UIResponder doesNotRecognizeSelector:] + 292
4 CoreFoundation 0x00007fff204274cf ___forwarding___ + 1455
5 CoreFoundation 0x00007fff204297a8 _CF_forwarding_prep_0 + 120
6 SpriteKit 0x00007fff3b47b1e4 -[SKView presentScene:] + 268
7 SpriteKit 0x00007fff3b47c350 -[SKView initWithCoder:] + 1123
8 UIFoundation 0x00007fff23a13ebe UINibDecoderDecodeObjectForValue + 707
9 UIFoundation 0x00007fff23a14148 UINibDecoderDecodeObjectForValue + 1357
10 UIFoundation 0x00007fff23a13bee -[UINibDecoder decodeObjectForKey:] + 244
11 UIKitCore 0x00007fff24be5ead -[UIView initWithCoder:] + 1390
12 UIFoundation 0x00007fff23a13ebe UINibDecoderDecodeObjectForValue + 707
13 UIFoundation 0x00007fff23a13bee -[UINibDecoder decodeObjectForKey:] + 244
14 UIKitCore 0x00007fff242ba159 -[UIRuntimeConnection initWithCoder:] + 160
15 UIFoundation 0x00007fff23a13ebe UINibDecoderDecodeObjectForValue + 707
16 UIFoundation 0x00007fff23a14148 UINibDecoderDecodeObjectForValue + 1357
17 UIFoundation 0x00007fff23a13bee -[UINibDecoder decodeObjectForKey:] + 244
18 UIKitCore 0x00007fff242b4f4a -[NSCoder(UIIBDependencyInjectionInternal) _decodeObjectsWithSourceSegueTemplate:creator:sender:forKey:] + 443
19 UIKitCore 0x00007fff242b7a53 -[UINib instantiateWithOwner:options:] + 1122
20 UIKitCore 0x00007fff23f84921 -[UIViewController loadView] + 668
21 UIKitCore 0x00007fff23f84cbc -[UIViewController loadViewIfRequired] + 172
22 UIKitCore 0x00007fff23eba03a -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 162
23 UIKitCore 0x00007fff23eba326 -[UINavigationController _startTransition:fromViewController:toViewController:] + 154
24 UIKitCore 0x00007fff23ebb3b8 -[UINavigationController _startDeferredTransitionIfNeeded:] + 876
25 UIKitCore 0x00007fff23ebc734 -[UINavigationController __viewWillLayoutSubviews] + 150
26 UIKitCore 0x00007fff23e9d04c -[UILayoutContainerView layoutSubviews] + 217
27 UIKitCore 0x00007fff24c18c90 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2946
28 QuartzCore 0x00007fff27a055b8 -[CALayer layoutSublayers] + 258
29 QuartzCore 0x00007fff27a0be3f _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 611
30 QuartzCore 0x00007fff27a17c53 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 65
31 QuartzCore 0x00007fff27951f26 _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 656
32 QuartzCore 0x00007fff279893b9 _ZN2CA11Transaction6commitEv + 713
33 UIKitCore 0x00007fff246debb8 __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 81
34 CoreFoundation 0x00007fff20390c74 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
35 CoreFoundation 0x00007fff20390070 __CFRunLoopDoBlocks + 437
36 CoreFoundation 0x00007fff2038aa08 __CFRunLoopRun + 892
37 CoreFoundation 0x00007fff2038a1a7 CFRunLoopRunSpecific + 567
38 GraphicsServices 0x00007fff2b874d85 GSEventRunModal + 139
39 UIKitCore 0x00007fff246c14df -[UIApplication _run] + 912
40 UIKitCore 0x00007fff246c639c UIApplicationMain + 101
41 libswiftUIKit.dylib 0x00007fff53fcbf42 $s5UIKit17UIApplicationMainys5Int32VAD_SpySpys4Int8VGGSgSSSgAJtF + 98
42 Project-drink 0x000000010f314c4a $sSo21UIApplicationDelegateP5UIKitE4mainyyFZ + 122
43 Project-drink 0x000000010f314bbe $s13Project_drink11AppDelegateC5$mainyyFZ + 46
44 Project-drink 0x000000010f314ce9 main + 41
45 libdyld.dylib 0x00007fff2025abbd start + 1
)
Not Login
2021-03-21 08:05:13.707070-0700 CarSaleAgent[28101:221025] pushViewController:animated: called on <UINavigationController 0x7fa3ba046800> while an existing transition or presentation is occurring; the navigation stack will not be updated.
Ok
2021-03-21 08:05:19.099331-0700 CarSaleAgent[28101:221025] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/apple/Library/Developer/CoreSimulator/Devices/B81E5794-CC42-4D72-AEC2-9402A99389A8/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2021-03-21 08:05:19.101287-0700 CarSaleAgent[28101:221025] [MC] Reading from private effective user settings.
Login Successfull
2021-03-21 08:05:30.885064-0700 CarSaleAgent[28101:221025] *** Assertion failure in -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore_Sim/UIKit-3698.84.15/UICollectionView.m:5372
2021-03-21 08:05:30.902325-0700 CarSaleAgent[28101:221025] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'could not dequeue a view of kind: UICollectionElementKindCell with identifier homeCollectionViewCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
*** First throw call stack:
(
0 CoreFoundation 0x000000010b46129b __exceptionPreprocess + 331
1 libobjc.A.dylib 0x000000010a9fd735 objc_exception_throw + 48
2 CoreFoundation 0x000000010b461022 +[NSException raise:format:arguments:] + 98
3 Foundation 0x000000010a401b47 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194
4 UIKitCore 0x00000001105bad1e -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory:] + 2536
5 UIKitCore 0x00000001105bafa9 -[UICollectionView dequeueReusableCellWithReuseIdentifier:forIndexPath:] + 169
6 CarSaleAgent 0x000000010a0a4d99 $S12CarSaleAgent18HomeViewControllerC010collectionE0_13cellForItemAtSo012UICollectionE4CellCSo0lE0C_10Foundation9IndexPathVtF + 345
7 CarSaleAgent 0x000000010a0a501c $S12CarSaleAgent18HomeViewControllerC010collectionE0_13cellForItemAtSo012UICollectionE4CellCSo0lE0C_10Foundation9IndexPathVtFTo + 108
8 UIKitCore 0x00000001105a48f0 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 314
9 UIKitCore 0x00000001105a47b0 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:] + 31
10 UIKitCore 0x00000001105a9e67 -[UICollectionView _updateVisibleCellsNow:] + 6164
11 UIKitCore 0x00000001105af68e -[UICollectionView layoutSubviews] + 364
12 UIKitCore 0x0000000110c16015 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1441
13 QuartzCore 0x000000011253ad3d -[CALayer layoutSublayers] + 175
14 QuartzCore 0x000000011253fbf7 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 395
15 QuartzCore 0x00000001124b8aa6 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 342
16 QuartzCore 0x00000001124efc2a _ZN2CA11Transaction6commitEv + 576
17 UIKitCore 0x00000001104f6ff9 _UIApplicationFlushRunLoopCATransactionIfTooLate + 165
18 UIKitCore 0x0000000110454090 __handleEventQueueInternal + 6874
19 CoreFoundation 0x000000010b3c4b31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
20 CoreFoundation 0x000000010b3c43a3 __CFRunLoopDoSources0 + 243
21 CoreFoundation 0x000000010b3bea4f __CFRunLoopRun + 1263
22 CoreFoundation 0x000000010b3be221 CFRunLoopRunSpecific + 625
23 GraphicsServices 0x00000001146b91dd GSEventRunModal + 62
24 UIKitCore 0x00000001104fd115 UIApplicationMain + 140
25 CarSaleAgent 0x000000010a0b36d7 main + 71
26 libdyld.dylib 0x000000010e158551 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
In my main storyboard i have my firstViewController then secondViewController and my pageViewController is third.
I am connecting all of them using seque Modal.
First and Second is working but my third is showing me an error.
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Storyboard (<UIStoryboard: 0x7fb15bca4dd0>) doesn't contain a view controller with identifier 'FirstViewController''
*** First throw call stack:
(
0 CoreFoundation 0x0000000108ba7f65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010aa62deb objc_exception_throw + 48
2 UIKit 0x0000000109ccc5d4 -[UIStoryboard instantiateInitialViewController] + 0
3 0x00000001089b422d _TFC8test23SkillPageViewControllerP33_B1A346F97B9DE8BA73F8676576C06E1324newColoredViewControllerfS0_FSSCSo16UIViewController + 365
4 0x00000001089b65cc _TFFC8test23SkillPageViewControllerg22orderedViewControllersGSaCSo16UIViewController_U_FT_GSaS1__ + 92
5 0x00000001089b2f75 _TFC8test23SkillPageViewControllerg22orderedViewControllersGSaCSo16UIViewController_ + 325
6 0x00000001089b3229 _TFC8test23SkillPageViewController11viewDidLoadfS0_FT_T_ + 313
7 0x00000001089b35e2 _TToFC8test23SkillPageViewController11viewDidLoadfS0_FT_T_ + 34
8 UIKit 0x0000000109775931 -[UIViewController loadViewIfRequired] + 1344
9 UIKit 0x0000000109775c7d -[UIViewController view] + 27
10 UIKit 0x0000000109edbb2c -[_UIFullscreenPresentationController _setPresentedViewController:] + 87
11 UIKit 0x000000010974603a -[UIPresentationController initWithPresentedViewController:presentingViewController:] + 133
12 UIKit 0x00000001097885c4 -[UIViewController _presentViewController:withAnimationController:completion:] + 3930
13 UIKit 0x000000010978b878 -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 489
14 UIKit 0x000000010978b387 -[UIViewController presentViewController:animated:completion:] + 179
15 UIKit 0x0000000109ce2af3 __67-[UIStoryboardModalSegueTemplate newDefaultPerformHandlerForSegue:]_block_invoke + 243
16 UIKit 0x0000000109cd1189 -[UIStoryboardSegueTemplate _performWithDestinationViewController:sender:] + 460
17 UIKit 0x0000000109cd0f8c -[UIStoryboardSegueTemplate _perform:] + 82
18 UIKit 0x0000000109cd1250 -[UIStoryboardSegueTemplate perform:] + 156
19 UIKit 0x00000001095ec1fa -[UIApplication sendAction:to:from:forEvent:] + 92
20 UIKit 0x0000000109750504 -[UIControl sendAction:to:forEvent:] + 67
21 UIKit 0x00000001097507d0 -[UIControl _sendActionsForEvents:withEvent:] + 311
22 UIKit 0x000000010974f906 -[UIControl touchesEnded:withEvent:] + 601
23 UIKit 0x0000000109656aa3 -[UIWindow _sendTouchesForEvent:] + 835
24 UIKit 0x0000000109657691 -[UIWindow sendEvent:] + 865
25 UIKit 0x0000000109609752 -[UIApplication sendEvent:] + 263
26 UIKit 0x00000001095e4fcc _UIApplicationHandleEventQueue + 6693
27 CoreFoundation 0x0000000108ad40a1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
28 CoreFoundation 0x0000000108ac9fcc __CFRunLoopDoSources0 + 556
29 CoreFoundation 0x0000000108ac9483 __CFRunLoopRun + 867
30 CoreFoundation 0x0000000108ac8e98 CFRunLoopRunSpecific + 488
31 GraphicsServices 0x000000010e099ad2 GSEventRunModal + 161
32 UIKit 0x00000001095ea676 UIApplicationMain + 171
33 0x00000001089ba10d main + 109
34 libdyld.dylib 0x000000010b58192d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
It is a hard guess because you didn't provide any of you code, but as the error state,
You need to set identifier for the view controller you used,in Storyboard > ViewController(one you added to storyboard,I think it is FirstViewController)>attribute inspector
there something called storyboard identifier or something like this, you need to set it. as I see you need to name it "FirstViewController"
I think you are skipping some main steps of configuring a pageviewcontroller, there is a very good tutorial here
it would be very helpful, if you check this tutorial
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.
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.