Skip to content

Instantly share code, notes, and snippets.

@mattyoung
Created August 25, 2021 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattyoung/6bb8e28bc7c77164ce6b1cfe138761b5 to your computer and use it in GitHub Desktop.
Save mattyoung/6bb8e28bc7c77164ce6b1cfe138761b5 to your computer and use it in GitHub Desktop.
2021-08-24 16:58:32.244431-0700 SwiftUI30WWDC2021[58755:8413137] [LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x600002b423a0 'BIB_Leading_Leading' H:|-(0)-[_UIModernBarButton:0x7fe32ef11ea0] (active, names: '|':_UIButtonBarButton:0x7fe330018a70 )>",
"<NSLayoutConstraint:0x600002b73ca0 'UINav_static_button_horiz_position' _UIModernBarButton:0x7fe32ef11ea0.leading == UILayoutGuide:0x600003165880'UIViewLayoutMarginsGuide'.leading (active)>",
"<NSLayoutConstraint:0x600002b73d40 'UINavItemContentGuide-leading' H:[_UIButtonBarButton:0x7fe330018a70]-(6)-[UILayoutGuide:0x6000031657a0'UINavigationBarItemContentLayoutGuide'] (active)>",
"<NSLayoutConstraint:0x600002b48230 'UINavItemContentGuide-trailing' UILayoutGuide:0x6000031657a0'UINavigationBarItemContentLayoutGuide'.trailing == _UINavigationBarContentView:0x7fe330012c10.trailing (active)>",
"<NSLayoutConstraint:0x600002b49400 'UIView-Encapsulated-Layout-Width' _UINavigationBarContentView:0x7fe330012c10.width == 0 (active)>",
"<NSLayoutConstraint:0x600002b485f0 'UIView-leftMargin-guide-constraint' H:|-(8)-[UILayoutGuide:0x600003165880'UIViewLayoutMarginsGuide'](LTR) (active, names: '|':_UINavigationBarContentView:0x7fe330012c10 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600002b423a0 'BIB_Leading_Leading' H:|-(0)-[_UIModernBarButton:0x7fe32ef11ea0] (active, names: '|':_UIButtonBarButton:0x7fe330018a70 )>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
2021-08-24 16:58:32.245537-0700 SwiftUI30WWDC2021[58755:8413137] [LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x600002b418b0 UIView:0x7fe32ef184e0.trailing == _UIBackButtonMaskView:0x7fe32ef16df0.trailing (active)>",
"<NSLayoutConstraint:0x600002b429e0 'Mask_Trailing_Trailing' _UIBackButtonMaskView:0x7fe32ef16df0.trailing == _UIButtonBarButton:0x7fe330018a70.trailing (active)>",
"<NSLayoutConstraint:0x600002b42b20 'MaskEV_Leading_BIB_Trailing' H:[_UIModernBarButton:0x7fe32ef11ea0]-(0)-[UIView:0x7fe32ef184e0] (active)>",
"<NSLayoutConstraint:0x600002b73ca0 'UINav_static_button_horiz_position' _UIModernBarButton:0x7fe32ef11ea0.leading == UILayoutGuide:0x600003165880'UIViewLayoutMarginsGuide'.leading (active)>",
"<NSLayoutConstraint:0x600002b73d40 'UINavItemContentGuide-leading' H:[_UIButtonBarButton:0x7fe330018a70]-(6)-[UILayoutGuide:0x6000031657a0'UINavigationBarItemContentLayoutGuide'] (active)>",
"<NSLayoutConstraint:0x600002b48230 'UINavItemContentGuide-trailing' UILayoutGuide:0x6000031657a0'UINavigationBarItemContentLayoutGuide'.trailing == _UINavigationBarContentView:0x7fe330012c10.trailing (active)>",
"<NSLayoutConstraint:0x600002b49400 'UIView-Encapsulated-Layout-Width' _UINavigationBarContentView:0x7fe330012c10.width == 0 (active)>",
"<NSLayoutConstraint:0x600002b485f0 'UIView-leftMargin-guide-constraint' H:|-(8)-[UILayoutGuide:0x600003165880'UIViewLayoutMarginsGuide'](LTR) (active, names: '|':_UINavigationBarContentView:0x7fe330012c10 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600002b418b0 UIView:0x7fe32ef184e0.trailing == _UIBackButtonMaskView:0x7fe32ef16df0.trailing (active)>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
2021-08-24 16:58:32.259095-0700 SwiftUI30WWDC2021[58755:8413137] [LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x600002b423f0 'BIB_Trailing_CB_Leading' H:[_UIModernBarButton:0x7fe32ef11ea0]-(6)-[_UIModernBarButton:0x7fe330019a50'Sign in'] (active)>",
"<NSLayoutConstraint:0x600002b42440 'CB_Trailing_Trailing' _UIModernBarButton:0x7fe330019a50'Sign in'.trailing <= _UIButtonBarButton:0x7fe330018a70.trailing (active)>",
"<NSLayoutConstraint:0x600002b73ca0 'UINav_static_button_horiz_position' _UIModernBarButton:0x7fe32ef11ea0.leading == UILayoutGuide:0x600003165880'UIViewLayoutMarginsGuide'.leading (active)>",
"<NSLayoutConstraint:0x600002b73d40 'UINavItemContentGuide-leading' H:[_UIButtonBarButton:0x7fe330018a70]-(6)-[UILayoutGuide:0x6000031657a0'UINavigationBarItemContentLayoutGuide'] (active)>",
"<NSLayoutConstraint:0x600002b48230 'UINavItemContentGuide-trailing' UILayoutGuide:0x6000031657a0'UINavigationBarItemContentLayoutGuide'.trailing == _UINavigationBarContentView:0x7fe330012c10.trailing (active)>",
"<NSLayoutConstraint:0x600002b49400 'UIView-Encapsulated-Layout-Width' _UINavigationBarContentView:0x7fe330012c10.width == 0 (active)>",
"<NSLayoutConstraint:0x600002b485f0 'UIView-leftMargin-guide-constraint' H:|-(8)-[UILayoutGuide:0x600003165880'UIViewLayoutMarginsGuide'](LTR) (active, names: '|':_UINavigationBarContentView:0x7fe330012c10 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600002b423f0 'BIB_Trailing_CB_Leading' H:[_UIModernBarButton:0x7fe32ef11ea0]-(6)-[_UIModernBarButton:0x7fe330019a50'Sign in'] (active)>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
2021-08-24 16:58:32.327081-0700 SwiftUI30WWDC2021[58755:8413137] Writing analzed variants.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment