Skip to content

Instantly share code, notes, and snippets.

@gs
Created November 18, 2022 12:59
Show Gist options
  • Save gs/4e07c5b9be5d254f72974f41184715a6 to your computer and use it in GitHub Desktop.
Save gs/4e07c5b9be5d254f72974f41184715a6 to your computer and use it in GitHub Desktop.
Turbo-IOS
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.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x60000040c730 h=--& v=--& _UIToolbarContentView:0x14ea07100.width == 0 (active)>",
"<NSLayoutConstraint:0x60000041edf0 H:|-(0)-[_UIButtonBarStackView:0x14dd0be30] (active, names: '|':_UIToolbarContentView:0x14ea07100 )>",
"<NSLayoutConstraint:0x60000041eda0 H:[_UIButtonBarStackView:0x14dd0be30]-(0)-| (active, names: '|':_UIToolbarContentView:0x14ea07100 )>",
"<NSLayoutConstraint:0x600000402f80 'IB_Leading_Leading' H:|-(0)-[_UIModernBarButton:0x14df42940] (active, names: '|':_UIButtonBarButton:0x14df41d00 )>",
"<NSLayoutConstraint:0x60000046ab20 'IB_Leading_Leading' H:|-(>=5)-[_UIModernBarButton:0x14ea1f310] (active, names: '|':_UIButtonBarButton:0x14ea1f0e0 )>",
"<NSLayoutConstraint:0x600000402fd0 'IB_Trailing_Trailing' H:[_UIModernBarButton:0x14df42940]-(>=8)-| (active, names: '|':_UIButtonBarButton:0x14df41d00 )>",
"<NSLayoutConstraint:0x60000046a800 'IB_Trailing_Trailing' H:[_UIModernBarButton:0x14ea1f310]-(>=5)-| (active, names: '|':_UIButtonBarButton:0x14ea1f0e0 )>",
"<NSLayoutConstraint:0x60000046b2f0 'TB_Leading_Leading' H:|-(8)-[_UIModernBarButton:0x14ea210a0'Done'] (active, names: '|':_UIButtonBarButton:0x14ea20030 )>",
"<NSLayoutConstraint:0x60000046b250 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x14ea210a0'Done']-(0)-| (active, names: '|':_UIButtonBarButton:0x14ea20030 )>",
"<NSLayoutConstraint:0x60000046bac0 'UISV-canvas-connection' UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x14df41d00.leading (active)>",
"<NSLayoutConstraint:0x60000046bd90 'UISV-canvas-connection' UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x14ea20030.trailing (active)>",
"<NSLayoutConstraint:0x60000046bde0 'UISV-spacing' H:[_UIButtonBarButton:0x14df41d00]-(0)-[UIView:0x14ea1ef30] (active)>",
"<NSLayoutConstraint:0x60000046be30 'UISV-spacing' H:[UIView:0x14ea1ef30]-(0)-[_UIButtonBarButton:0x14ea1f0e0] (active)>",
"<NSLayoutConstraint:0x60000046be80 'UISV-spacing' H:[_UIButtonBarButton:0x14ea1f0e0]-(0)-[UIView:0x14ea1fe80] (active)>",
"<NSLayoutConstraint:0x60000046bed0 'UISV-spacing' H:[UIView:0x14ea1fe80]-(0)-[_UIButtonBarButton:0x14ea20030] (active)>",
"<NSLayoutConstraint:0x60000041e530 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide'](LTR) (active, names: '|':_UIButtonBarStackView:0x14dd0be30 )>",
"<NSLayoutConstraint:0x60000041eb70 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide']-(0)-|(LTR) (active, names: '|':_UIButtonBarStackView:0x14dd0be30 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600000402fd0 'IB_Trailing_Trailing' H:[_UIModernBarButton:0x14df42940]-(>=8)-| (active, names: '|':_UIButtonBarButton:0x14df41d00 )>
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.
2022-11-18 13:58:46.576595+0100 the-party[2733:1708907] [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.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x60000040c730 h=--& v=--& _UIToolbarContentView:0x14ea07100.width == 0 (active)>",
"<NSLayoutConstraint:0x60000041edf0 H:|-(0)-[_UIButtonBarStackView:0x14dd0be30] (active, names: '|':_UIToolbarContentView:0x14ea07100 )>",
"<NSLayoutConstraint:0x60000041eda0 H:[_UIButtonBarStackView:0x14dd0be30]-(0)-| (active, names: '|':_UIToolbarContentView:0x14ea07100 )>",
"<NSLayoutConstraint:0x60000046ab20 'IB_Leading_Leading' H:|-(>=5)-[_UIModernBarButton:0x14ea1f310] (active, names: '|':_UIButtonBarButton:0x14ea1f0e0 )>",
"<NSLayoutConstraint:0x60000046a800 'IB_Trailing_Trailing' H:[_UIModernBarButton:0x14ea1f310]-(>=5)-| (active, names: '|':_UIButtonBarButton:0x14ea1f0e0 )>",
"<NSLayoutConstraint:0x60000046b2f0 'TB_Leading_Leading' H:|-(8)-[_UIModernBarButton:0x14ea210a0'Done'] (active, names: '|':_UIButtonBarButton:0x14ea20030 )>",
"<NSLayoutConstraint:0x60000046b250 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x14ea210a0'Done']-(0)-| (active, names: '|':_UIButtonBarButton:0x14ea20030 )>",
"<NSLayoutConstraint:0x60000046bac0 'UISV-canvas-connection' UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x14df41d00.leading (active)>",
"<NSLayoutConstraint:0x60000046bd90 'UISV-canvas-connection' UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x14ea20030.trailing (active)>",
"<NSLayoutConstraint:0x60000046bde0 'UISV-spacing' H:[_UIButtonBarButton:0x14df41d00]-(0)-[UIView:0x14ea1ef30] (active)>",
"<NSLayoutConstraint:0x60000046be30 'UISV-spacing' H:[UIView:0x14ea1ef30]-(0)-[_UIButtonBarButton:0x14ea1f0e0] (active)>",
"<NSLayoutConstraint:0x60000046be80 'UISV-spacing' H:[_UIButtonBarButton:0x14ea1f0e0]-(0)-[UIView:0x14ea1fe80] (active)>",
"<NSLayoutConstraint:0x60000046bed0 'UISV-spacing' H:[UIView:0x14ea1fe80]-(0)-[_UIButtonBarButton:0x14ea20030] (active)>",
"<NSLayoutConstraint:0x60000041e530 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide'](LTR) (active, names: '|':_UIButtonBarStackView:0x14dd0be30 )>",
"<NSLayoutConstraint:0x60000041eb70 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide']-(0)-|(LTR) (active, names: '|':_UIButtonBarStackView:0x14dd0be30 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x60000046a800 'IB_Trailing_Trailing' H:[_UIModernBarButton:0x14ea1f310]-(>=5)-| (active, names: '|':_UIButtonBarButton:0x14ea1f0e0 )>
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.
2022-11-18 13:58:46.595394+0100 the-party[2733:1708907] [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.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x60000040c730 h=--& v=--& _UIToolbarContentView:0x14ea07100.width == 0 (active)>",
"<NSLayoutConstraint:0x60000041edf0 H:|-(0)-[_UIButtonBarStackView:0x14dd0be30] (active, names: '|':_UIToolbarContentView:0x14ea07100 )>",
"<NSLayoutConstraint:0x60000041eda0 H:[_UIButtonBarStackView:0x14dd0be30]-(0)-| (active, names: '|':_UIToolbarContentView:0x14ea07100 )>",
"<NSLayoutConstraint:0x60000046b2f0 'TB_Leading_Leading' H:|-(8)-[_UIModernBarButton:0x14ea210a0'Done'] (active, names: '|':_UIButtonBarButton:0x14ea20030 )>",
"<NSLayoutConstraint:0x60000046b250 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x14ea210a0'Done']-(0)-| (active, names: '|':_UIButtonBarButton:0x14ea20030 )>",
"<NSLayoutConstraint:0x60000046bac0 'UISV-canvas-connection' UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x14df41d00.leading (active)>",
"<NSLayoutConstraint:0x60000046bd90 'UISV-canvas-connection' UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x14ea20030.trailing (active)>",
"<NSLayoutConstraint:0x60000046bde0 'UISV-spacing' H:[_UIButtonBarButton:0x14df41d00]-(0)-[UIView:0x14ea1ef30] (active)>",
"<NSLayoutConstraint:0x60000046be30 'UISV-spacing' H:[UIView:0x14ea1ef30]-(0)-[_UIButtonBarButton:0x14ea1f0e0] (active)>",
"<NSLayoutConstraint:0x60000046be80 'UISV-spacing' H:[_UIButtonBarButton:0x14ea1f0e0]-(0)-[UIView:0x14ea1fe80] (active)>",
"<NSLayoutConstraint:0x60000046bed0 'UISV-spacing' H:[UIView:0x14ea1fe80]-(0)-[_UIButtonBarButton:0x14ea20030] (active)>",
"<NSLayoutConstraint:0x60000041e530 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide'](LTR) (active, names: '|':_UIButtonBarStackView:0x14dd0be30 )>",
"<NSLayoutConstraint:0x60000041eb70 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide']-(0)-|(LTR) (active, names: '|':_UIButtonBarStackView:0x14dd0be30 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x60000046b250 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x14ea210a0'Done']-(0)-| (active, names: '|':_UIButtonBarButton:0x14ea20030 )>
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.
2022-11-18 13:58:46.596225+0100 the-party[2733:1708907] [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.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x60000040c7d0 h=--& v=--& _UIToolbarContentView:0x14ea07100.height == 0 (active)>",
"<NSLayoutConstraint:0x60000041ead0 V:|-(0)-[_UIButtonBarStackView:0x14dd0be30] (active, names: '|':_UIToolbarContentView:0x14ea07100 )>",
"<NSLayoutConstraint:0x60000041ec60 _UIButtonBarStackView:0x14dd0be30.bottom == _UIToolbarContentView:0x14ea07100.bottom (active)>",
"<NSLayoutConstraint:0x60000040cd70 UIImageView:0x14ea1ea70.centerY == _UIModernBarButton:0x14df42940.centerY (active)>",
"<NSLayoutConstraint:0x600000403250 'IB_Baseline_Baseline' _UIModernBarButton:0x14df42940.lastBaseline == UILayoutGuide:0x600001e1d420'UIViewLayoutMarginsGuide'.bottom (active)>",
"<NSLayoutConstraint:0x6000004032a0 'IB_Top_Top' V:|-(>=0)-[_UIModernBarButton:0x14df42940] (active, names: '|':_UIButtonBarButton:0x14df41d00 )>",
"<NSLayoutConstraint:0x60000046a5d0 'UIButtonBar.maximumAlignmentSize' _UIButtonBarButton:0x14df41d00.height == UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide'.height (active)>",
"<NSLayoutConstraint:0x60000041ee40 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide']-(0)-| (active, names: '|':_UIButtonBarStackView:0x14dd0be30 )>",
"<NSLayoutConstraint:0x6000004031b0 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x600001e1d420'UIViewLayoutMarginsGuide']-(11)-| (active, names: '|':_UIButtonBarButton:0x14df41d00 )>",
"<NSLayoutConstraint:0x60000041e3a0 'UIView-topMargin-guide-constraint' V:|-(0)-[UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide'] (active, names: '|':_UIButtonBarStackView:0x14dd0be30 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x60000040cd70 UIImageView:0x14ea1ea70.centerY == _UIModernBarButton:0x14df42940.centerY (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.
2022-11-18 13:58:46.596835+0100 the-party[2733:1708907] [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.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x60000040c7d0 h=--& v=--& _UIToolbarContentView:0x14ea07100.height == 0 (active)>",
"<NSLayoutConstraint:0x60000041ead0 V:|-(0)-[_UIButtonBarStackView:0x14dd0be30] (active, names: '|':_UIToolbarContentView:0x14ea07100 )>",
"<NSLayoutConstraint:0x60000041ec60 _UIButtonBarStackView:0x14dd0be30.bottom == _UIToolbarContentView:0x14ea07100.bottom (active)>",
"<NSLayoutConstraint:0x600000404320 UIImageView:0x14ea1fb40.centerY == _UIModernBarButton:0x14ea1f310.centerY (active)>",
"<NSLayoutConstraint:0x60000046b520 'IB_Baseline_Baseline' _UIModernBarButton:0x14ea1f310.lastBaseline == UILayoutGuide:0x600001e5d960'UIViewLayoutMarginsGuide'.bottom (active)>",
"<NSLayoutConstraint:0x60000046b430 'IB_Top_Top' V:|-(>=0)-[_UIModernBarButton:0x14ea1f310] (active, names: '|':_UIButtonBarButton:0x14ea1f0e0 )>",
"<NSLayoutConstraint:0x60000046b390 'UIButtonBar.maximumAlignmentSize' _UIButtonBarButton:0x14ea1f0e0.height == UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide'.height (active)>",
"<NSLayoutConstraint:0x60000041ee40 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide']-(0)-| (active, names: '|':_UIButtonBarStackView:0x14dd0be30 )>",
"<NSLayoutConstraint:0x60000046a8a0 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x600001e5d960'UIViewLayoutMarginsGuide']-(11)-| (active, names: '|':_UIButtonBarButton:0x14ea1f0e0 )>",
"<NSLayoutConstraint:0x60000041e3a0 'UIView-topMargin-guide-constraint' V:|-(0)-[UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide'] (active, names: '|':_UIButtonBarStackView:0x14dd0be30 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600000404320 UIImageView:0x14ea1fb40.centerY == _UIModernBarButton:0x14ea1f310.centerY (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.
2022-11-18 13:58:46.597349+0100 the-party[2733:1708907] [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.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x60000040c7d0 h=--& v=--& _UIToolbarContentView:0x14ea07100.height == 0 (active)>",
"<NSLayoutConstraint:0x60000041ead0 V:|-(0)-[_UIButtonBarStackView:0x14dd0be30] (active, names: '|':_UIToolbarContentView:0x14ea07100 )>",
"<NSLayoutConstraint:0x60000041ec60 _UIButtonBarStackView:0x14dd0be30.bottom == _UIToolbarContentView:0x14ea07100.bottom (active)>",
"<NSLayoutConstraint:0x600000404640 UIButtonLabel:0x14ea22da0.centerY == _UIModernBarButton:0x14ea210a0'Done'.centerY + 1.5 (active)>",
"<NSLayoutConstraint:0x60000046a490 'TB_Baseline_Baseline' _UIModernBarButton:0x14ea210a0'Done'.lastBaseline == UILayoutGuide:0x600001e5da40'UIViewLayoutMarginsGuide'.bottom (active)>",
"<NSLayoutConstraint:0x60000046b8e0 'TB_Top_Top' V:|-(>=0)-[_UIModernBarButton:0x14ea210a0'Done'] (active, names: '|':_UIButtonBarButton:0x14ea20030 )>",
"<NSLayoutConstraint:0x60000046ba20 'UIButtonBar.maximumAlignmentSize' _UIButtonBarButton:0x14ea20030.height == UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide'.height (active)>",
"<NSLayoutConstraint:0x60000041ee40 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide']-(0)-| (active, names: '|':_UIButtonBarStackView:0x14dd0be30 )>",
"<NSLayoutConstraint:0x60000046a300 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x600001e5da40'UIViewLayoutMarginsGuide']-(11)-| (active, names: '|':_UIButtonBarButton:0x14ea20030 )>",
"<NSLayoutConstraint:0x60000041e3a0 'UIView-topMargin-guide-constraint' V:|-(0)-[UILayoutGuide:0x600001e58620'UIViewLayoutMarginsGuide'] (active, names: '|':_UIButtonBarStackView:0x14dd0be30 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600000404640 UIButtonLabel:0x14ea22da0.centerY == _UIModernBarButton:0x14ea210a0'Done'.centerY + 1.5 (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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment