Closed keynsianets closed 4 years ago
After update to Xcode 11 an use simulator with iOS 13 we get permanent crash on all apps, that use this framework.
2019-09-23 14:06:45.141551+0300 AppName-iOS[9836:103834] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Client error attempting to change layout margins of a private view' *** First throw call stack: ( 0 CoreFoundation 0x00007fff23b98bde __exceptionPreprocess + 350 1 libobjc.A.dylib 0x00007fff503b5b20 objc_exception_throw + 48 2 CoreFoundation 0x00007fff23b98958 +[NSException raise:format:arguments:] + 88 3 Foundation 0x00007fff255eb6f5 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191 4 UIKitCore 0x00007fff4681c131 -[_UINavigationBarContentView setLayoutMargins:] + 203 5 Material 0x0000000111245fbd $s8Material13NavigationBarC14layoutSubviewsyyF + 733 6 Material 0x000000011124755b $s8Material13NavigationBarC14layoutSubviewsyyFTo + 43 7 UIKitCore 0x00007fff47636722 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2478 8 UIKitCore 0x00007fff467eaf99 -[UINavigationBar layoutSublayersOfLayer:] + 248 9 QuartzCore 0x00007fff2b030ef9 -[CALayer layoutSublayers] + 255 10 QuartzCore 0x00007fff2b0358ff _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 517 11 UIKitCore 0x00007fff47621a35 -[UIView(Hierarchy) layoutBelowIfNeeded] + 980 12 UIKitCore 0x00007fff46a5055c -[UINavigationController _positionNavigationBarHidden:edge:initialOffset:] + 880 13 UIKitCore 0x00007fff46a507e0 -[UINavigationController _positionNavigationBarHidden:edge:] + 388 14 UIKitCore 0x00007fff46a5ac74 -[UINavigationController _updateBarsForCurrentInterfaceOrientationAndForceBarLayout:] + 145 15 UIKitCore 0x00007fff46b05081 -[UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:] + 218 16 UIKitCore 0x00007fff46a57ccd -[UINavigationController viewDidMoveToWindow:shouldAppearOrDisappear:] + 69 17 UIKitCore 0x00007fff4762d085 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1402 18 UIKitCore 0x00007fff4762cdd3 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 712 19 UIKitCore 0x00007fff4762cdd3 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 712 20 UIKitCore 0x00007fff4762cdd3 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 712 21 UIKitCore 0x00007fff4762cdd3 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 712 22 UIKitCore 0x00007fff47620483 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 151 23 Foundation 0x00007fff257d96db -[NSISEngine withBehaviors:performModifications:] + 84 24 UIKitCore 0x00007fff4762038e -[UIView(Hierarchy) _postMovedFromSuperview:] + 780 25 UIKitCore 0x00007fff4762fb45 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1718 26 UIKitCore 0x00007fff475ead80 -[UINavigationTransitionView transition:fromView:toView:] + 645 27 UIKitCore 0x00007fff46a62dc6 -[UINavigationController _startTransition:fromViewController:toViewController:] + 2758 28 UIKitCore 0x00007fff46a63256 -[UINavigationController _startDeferredTransitionIfNeeded:] + 868 29 UIKitCore 0x00007fff46a645c1 -[UINavigationController __viewWillLayoutSubviews] + 150 30 UIKitCore 0x00007fff46a45ffb -[UILayoutContainerView layoutSubviews] + 217 31 UIKitCore 0x00007fff47636722 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2478 32 QuartzCore 0x00007fff2b030ef9 -[CALayer layoutSublayers] + 255 33 QuartzCore 0x00007fff2b0358ff _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 517 34 UIKitCore 0x00007fff47621a35 -[UIView(Hierarchy) layoutBelowIfNeeded] + 980 35 UIKitCore 0x00007fff46a1f477 -[_UISheetPresentationController _sheetLayoutInfoLayout:] + 48 36 UIKitCore 0x00007fff46a1cd17 -[_UISheetLayoutInfo _layout] + 360 37 UIKitCore 0x00007fff46a213e6 __54-[_UISheetPresentationController transitionWillBegin:]_block_invoke_3 + 52 38 UIKitCore 0x00007fff47628a26 +[UIView(Animation) performWithoutAnimation:] + 84 39 UIKitCore 0x00007fff46a21323 __54-[_UISheetPresentationController transitionWillBegin:]_block_invoke_2 + 120 40 UIKitCore 0x00007fff46b2b8cd -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:] + 294 41 UIKitCore 0x00007fff46b27bef -[_UIViewControllerTransitionContext __runAlongsideAnimations] + 263 42 UIKitCore 0x00007fff4762884f __63+[UIView(Animation) _setAlongsideAnimations:toRunByEndOfBlock:]_block_invoke + 16 43 UIKitCore 0x00007fff475fa2ac -[UIViewAnimationState _runAlongsideAnimations] + 24 44 UIKitCore 0x00007fff475f8ff6 -[UIViewAnimationState pop] + 37 45 UIKitCore 0x00007fff475f63ba +[UIViewAnimationState popAnimationState] + 62 46 UIKitCore 0x00007fff4762a260 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 650 47 UIKitCore 0x00007fff4762a795 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:delay:options:animations:completion:] + 99 48 UIKitCore 0x00007fff475f195d __50-[UITransitionView _startTransition:withDuration:]_block_invoke.169 + 66 49 UIKitCore 0x00007fff4762ad20 +[UIView(UIViewAnimationWithBlocks) conditionallyAnimate:withAnimation:layout:completion:] + 76 50 UIKitCore 0x00007fff475f1341 -[UITransitionView _startTransition:withDuration:] + 699 51 UIKitCore 0x00007fff475f0dd9 -[UITransitionView transition:fromView:toView:removeFromView:] + 2721 52 UIKitCore 0x00007fff46b23bb8 -[UIViewControllerBuiltinTransitionViewAnimator animateTransition:] + 1220 53 UIKitCore 0x00007fff46b2c49e ___UIViewControllerTransitioningRunCustomTransition_block_invoke_2 + 54 54 UIKitCore 0x00007fff46c41ece +[UIInputResponderController _pinInputViewsForInputResponderController:onBehalfOfResponder:duringBlock:] + 99 55 UIKitCore 0x00007fff46b2c432 ___UIViewControllerTransitioningRunCustomTransition_block_invoke.645 + 180 56 UIKitCore 0x00007fff47628751 +[UIView(Animation) _setAlongsideAnimations:toRunByEndOfBlock:] + 175 57 UIKitCore 0x00007fff46b2c2b8 _UIViewControllerTransitioningRunCustomTransition + 553 58 UIKitCore 0x00007fff46a0fccb __56-[UIPresentationController runTransitionForCurrentState]_block_invoke.452 + 2632 59 UIKitCore 0x00007fff4716b85a _runAfterCACommitDeferredBlocks + 352 60 UIKitCore 0x00007fff4715c63c _cleanUpAfterCAFlushAndRunDeferredBlocks + 248 61 UIKitCore 0x00007fff4718bc6e _afterCACommitHandler + 85 62 CoreFoundation 0x00007fff23afaeb7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 63 CoreFoundation 0x00007fff23af594e __CFRunLoopDoObservers + 430 64 CoreFoundation 0x00007fff23af5fca __CFRunLoopRun + 1514 65 CoreFoundation 0x00007fff23af56b6 CFRunLoopRunSpecific + 438 66 GraphicsServices 0x00007fff3815cbb0 GSEventRunModal + 65 67 UIKitCore 0x00007fff47162a67 UIApplicationMain + 1621```
I m going to close this issue, free to reopen it if this problem still alive.
After update to Xcode 11 an use simulator with iOS 13 we get permanent crash on all apps, that use this framework.