Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout constraint errors #630

Open
jackson0122 opened this issue May 1, 2024 · 0 comments
Open

Layout constraint errors #630

jackson0122 opened this issue May 1, 2024 · 0 comments

Comments

@jackson0122
Copy link

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:0x600002136fd0 Tabman.TMLineBarIndicator:0x136f07c10.height == 2 (active)>",
"<NSLayoutConstraint:0x600002135720 V:|-(0)-[Tabman.TMLineBarIndicator:0x136f07c10] (active, names: '|':TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0 )>",
"<NSLayoutConstraint:0x6000021358b0 Tabman.TMLineBarIndicator:0x136f07c10.bottom == TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0.bottom (active)>",
"<NSLayoutConstraint:0x600002135f40 V:|-(0)-[UIStackView:0x136f09c60] (active, names: '|':Tabman.TMBarViewLayoutGrid:0x136f09ac0 )>",
"<NSLayoutConstraint:0x600002135c20 UIStackView:0x136f09c60.bottom == Tabman.TMBarViewLayoutGrid:0x136f09ac0.bottom (active)>",
"<NSLayoutConstraint:0x600002135a40 Tabman.TMBarViewLayoutGrid:0x136f09ac0.height == UIStackView:0x136f071d0.height (active)>",
"<NSLayoutConstraint:0x600002134410 V:|-(0)-[UIStackView:0x136f071d0] (active, names: '|':TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0 )>",
"<NSLayoutConstraint:0x600002134ff0 V:[UIStackView:0x136f071d0]-(0)-| (active, names: '|':TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0 )>",
"<NSLayoutConstraint:0x600002137c50 '_UITemporaryLayoutHeight' UIStackView:0x136f06500.height == 0 (active)>",
"<NSLayoutConstraint:0x600002137de0 'UISV-canvas-connection' UIStackView:0x136f09e10.top == UIView:0x136f09930.top (active)>",
"<NSLayoutConstraint:0x600002137f70 'UISV-canvas-connection' V:[UIView:0x136f09930]-(0)-| (active, names: '|':UIStackView:0x136f09e10 )>",
"<NSLayoutConstraint:0x600002137e80 'UISV-canvas-connection' UIStackView:0x136f09c60.top == UIStackView:0x136f09e10.top (active)>",
"<NSLayoutConstraint:0x600002137f20 'UISV-canvas-connection' V:[TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0]-(0)-| (active, names: '|':UIStackView:0x136f09c60 )>",
"<NSLayoutConstraint:0x600002100cd0 'UISV-canvas-connection' UIStackView:0x136f06500.top == TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0.top (active)>",
"<NSLayoutConstraint:0x600002100aa0 'UISV-canvas-connection' V:[TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0]-(0)-| (active, names: '|':UIStackView:0x136f06500 )>",
"<NSLayoutConstraint:0x600002101a40 'UISV-spacing' V:[UIStackView:0x136f09e10]-(0)-[TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0] (active)>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600002136fd0 Tabman.TMLineBarIndicator:0x136f07c10.height == 2 (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.
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:0x6000021350e0 H:[UILayoutGuide:0x600003b381c0'barInsetsLeadingGuide']-(0)-[UILayoutGuide:0x600003b38380'barInsetsContentGuide'] (active)>",
"<NSLayoutConstraint:0x600002135220 UILayoutGuide:0x600003b381c0'barInsetsLeadingGuide'.leading == UILayoutGuide:0x600003b380e0'UIViewSafeAreaLayoutGuide'.leading (active)>",
"<NSLayoutConstraint:0x600002135810 UILayoutGuide:0x600003b38380'barInsetsContentGuide'.trailing == UILayoutGuide:0x600003b382a0'barInsetsTrailingGuide'.leading (active)>",
"<NSLayoutConstraint:0x6000021359a0 UILayoutGuide:0x600003b382a0'barInsetsTrailingGuide'.trailing == UILayoutGuide:0x600003b380e0'UIViewSafeAreaLayoutGuide'.trailing (active)>",
"<NSLayoutConstraint:0x600002135cc0 UILayoutGuide:0x600003b381c0'barInsetsLeadingGuide'.width == 15 (active)>",
"<NSLayoutConstraint:0x600002135130 UILayoutGuide:0x600003b382a0'barInsetsTrailingGuide'.width == 15 (active)>",
"<NSLayoutConstraint:0x600002137bb0 '_UITemporaryLayoutWidth' UIStackView:0x136f06500.width == 0 (active)>",
"<NSLayoutConstraint:0x600002100500 'UISV-canvas-connection' UIStackView:0x136f06500.leading == TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0.leading (active)>",
"<NSLayoutConstraint:0x600002101950 'UISV-canvas-connection' H:[TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0]-(0)-| (active, names: '|':UIStackView:0x136f06500 )>",
"<NSLayoutConstraint:0x6000021362b0 'UIViewSafeAreaLayoutGuide-left' H:|-(0)-UILayoutGuide:0x600003b380e0'UIViewSafeAreaLayoutGuide' (active, names: '|':TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0 )>",
"<NSLayoutConstraint:0x600002136210 'UIViewSafeAreaLayoutGuide-right' H:[UILayoutGuide:0x600003b380e0'UIViewSafeAreaLayoutGuide']-(0)-|(LTR) (active, names: '|':TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0 )>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x6000021350e0 H:[UILayoutGuide:0x600003b381c0'barInsetsLeadingGuide']-(0)-[UILayoutGuide:0x600003b38380'barInsetsContentGuide'] (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.
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:0x600002135220 UILayoutGuide:0x600003b381c0'barInsetsLeadingGuide'.leading == UILayoutGuide:0x600003b380e0'UIViewSafeAreaLayoutGuide'.leading (active)>",
"<NSLayoutConstraint:0x600002135810 UILayoutGuide:0x600003b38380'barInsetsContentGuide'.trailing == UILayoutGuide:0x600003b382a0'barInsetsTrailingGuide'.leading (active)>",
"<NSLayoutConstraint:0x6000021359a0 UILayoutGuide:0x600003b382a0'barInsetsTrailingGuide'.trailing == UILayoutGuide:0x600003b380e0'UIViewSafeAreaLayoutGuide'.trailing (active)>",
"<NSLayoutConstraint:0x600002135cc0 UILayoutGuide:0x600003b381c0'barInsetsLeadingGuide'.width == 15 (active)>",
"<NSLayoutConstraint:0x600002135130 UILayoutGuide:0x600003b382a0'barInsetsTrailingGuide'.width == 15 (active)>",
"<NSLayoutConstraint:0x6000021350e0 H:[UILayoutGuide:0x600003b381c0'barInsetsLeadingGuide']-(0)-[UILayoutGuide:0x600003b38380'barInsetsContentGuide'] (active)>",
"<NSLayoutConstraint:0x600002100500 'UISV-canvas-connection' UIStackView:0x136f06500.leading == TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0.leading (active)>",
"<NSLayoutConstraint:0x600002101950 'UISV-canvas-connection' H:[TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0]-(0)-| (active, names: '|':UIStackView:0x136f06500 )>",
"<NSLayoutConstraint:0x600002102260 'UIView-Encapsulated-Layout-Width' UIStackView:0x136f06500.width == 0 (active)>",
"<NSLayoutConstraint:0x6000021362b0 'UIViewSafeAreaLayoutGuide-left' H:|-(0)-UILayoutGuide:0x600003b380e0'UIViewSafeAreaLayoutGuide' (active, names: '|':TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0 )>",
"<NSLayoutConstraint:0x600002136210 'UIViewSafeAreaLayoutGuide-right' H:[UILayoutGuide:0x600003b380e0'UIViewSafeAreaLayoutGuide']-(0)-|(LTR) (active, names: '|':TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0 )>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x6000021350e0 H:[UILayoutGuide:0x600003b381c0'barInsetsLeadingGuide']-(0)-[UILayoutGuide:0x600003b38380'barInsetsContentGuide'] (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.
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:0x6000021351d0 V:|-(0)-[UIStackView:0x136f09780] (active, names: '|':UIView:0x136f09930 )>",
"<NSLayoutConstraint:0x600002135860 UIStackView:0x136f09780.bottom == UIView:0x136f09930.bottom (active)>",
"<NSLayoutConstraint:0x600002136fd0 Tabman.TMLineBarIndicator:0x136f07c10.height == 2 (active)>",
"<NSLayoutConstraint:0x600002135720 V:|-(0)-[Tabman.TMLineBarIndicator:0x136f07c10] (active, names: '|':TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0 )>",
"<NSLayoutConstraint:0x6000021358b0 Tabman.TMLineBarIndicator:0x136f07c10.bottom == TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0.bottom (active)>",
"<NSLayoutConstraint:0x600002135f40 V:|-(0)-[UIStackView:0x136f09c60] (active, names: '|':Tabman.TMBarViewLayoutGrid:0x136f09ac0 )>",
"<NSLayoutConstraint:0x600002135c20 UIStackView:0x136f09c60.bottom == Tabman.TMBarViewLayoutGrid:0x136f09ac0.bottom (active)>",
"<NSLayoutConstraint:0x600002135a40 Tabman.TMBarViewLayoutGrid:0x136f09ac0.height == UIStackView:0x136f071d0.height (active)>",
"<NSLayoutConstraint:0x600002134410 V:|-(0)-[UIStackView:0x136f071d0] (active, names: '|':TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0 )>",
"<NSLayoutConstraint:0x600002134ff0 V:[UIStackView:0x136f071d0]-(0)-| (active, names: '|':TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0 )>",
"<NSLayoutConstraint:0x600002137de0 'UISV-canvas-connection' UIStackView:0x136f09e10.top == UIView:0x136f09930.top (active)>",
"<NSLayoutConstraint:0x600002137f70 'UISV-canvas-connection' V:[UIView:0x136f09930]-(0)-| (active, names: '|':UIStackView:0x136f09e10 )>",
"<NSLayoutConstraint:0x600002137e80 'UISV-canvas-connection' UIStackView:0x136f09c60.top == UIStackView:0x136f09e10.top (active)>",
"<NSLayoutConstraint:0x600002137f20 'UISV-canvas-connection' V:[TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0]-(0)-| (active, names: '|':UIStackView:0x136f09c60 )>",
"<NSLayoutConstraint:0x600002100cd0 'UISV-canvas-connection' UIStackView:0x136f06500.top == TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0.top (active)>",
"<NSLayoutConstraint:0x600002100aa0 'UISV-canvas-connection' V:[TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0]-(0)-| (active, names: '|':UIStackView:0x136f06500 )>",
"<NSLayoutConstraint:0x600002101a40 'UISV-spacing' V:[UIStackView:0x136f09e10]-(0)-[TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0] (active)>",
"<NSLayoutConstraint:0x6000021020d0 'UIView-Encapsulated-Layout-Height' UIStackView:0x136f06500.height == 0 (active)>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600002135860 UIStackView:0x136f09780.bottom == UIView:0x136f09930.bottom (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.
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:0x600002136fd0 Tabman.TMLineBarIndicator:0x136f07c10.height == 2 (active)>",
"<NSLayoutConstraint:0x600002135720 V:|-(0)-[Tabman.TMLineBarIndicator:0x136f07c10] (active, names: '|':TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0 )>",
"<NSLayoutConstraint:0x6000021358b0 Tabman.TMLineBarIndicator:0x136f07c10.bottom == TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0.bottom (active)>",
"<NSLayoutConstraint:0x600002135f40 V:|-(0)-[UIStackView:0x136f09c60] (active, names: '|':Tabman.TMBarViewLayoutGrid:0x136f09ac0 )>",
"<NSLayoutConstraint:0x600002135c20 UIStackView:0x136f09c60.bottom == Tabman.TMBarViewLayoutGrid:0x136f09ac0.bottom (active)>",
"<NSLayoutConstraint:0x600002135a40 Tabman.TMBarViewLayoutGrid:0x136f09ac0.height == UIStackView:0x136f071d0.height (active)>",
"<NSLayoutConstraint:0x600002134410 V:|-(0)-[UIStackView:0x136f071d0] (active, names: '|':TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0 )>",
"<NSLayoutConstraint:0x600002134ff0 V:[UIStackView:0x136f071d0]-(0)-| (active, names: '|':TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0 )>",
"<NSLayoutConstraint:0x600002137de0 'UISV-canvas-connection' UIStackView:0x136f09e10.top == UIView:0x136f09930.top (active)>",
"<NSLayoutConstraint:0x600002137f70 'UISV-canvas-connection' V:[UIView:0x136f09930]-(0)-| (active, names: '|':UIStackView:0x136f09e10 )>",
"<NSLayoutConstraint:0x600002137e80 'UISV-canvas-connection' UIStackView:0x136f09c60.top == UIStackView:0x136f09e10.top (active)>",
"<NSLayoutConstraint:0x600002137f20 'UISV-canvas-connection' V:[TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0]-(0)-| (active, names: '|':UIStackView:0x136f09c60 )>",
"<NSLayoutConstraint:0x600002100cd0 'UISV-canvas-connection' UIStackView:0x136f06500.top == TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0.top (active)>",
"<NSLayoutConstraint:0x600002100aa0 'UISV-canvas-connection' V:[TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0]-(0)-| (active, names: '|':UIStackView:0x136f06500 )>",
"<NSLayoutConstraint:0x600002101a40 'UISV-spacing' V:[UIStackView:0x136f09e10]-(0)-[TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0] (active)>",
"<NSLayoutConstraint:0x6000021020d0 'UIView-Encapsulated-Layout-Height' UIStackView:0x136f06500.height == 0 (active)>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600002136fd0 Tabman.TMLineBarIndicator:0x136f07c10.height == 2 (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.
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:0x600002135220 UILayoutGuide:0x600003b381c0'barInsetsLeadingGuide'.leading == UILayoutGuide:0x600003b380e0'UIViewSafeAreaLayoutGuide'.leading (active)>",
"<NSLayoutConstraint:0x600002135810 UILayoutGuide:0x600003b38380'barInsetsContentGuide'.trailing == UILayoutGuide:0x600003b382a0'barInsetsTrailingGuide'.leading (active)>",
"<NSLayoutConstraint:0x6000021359a0 UILayoutGuide:0x600003b382a0'barInsetsTrailingGuide'.trailing == UILayoutGuide:0x600003b380e0'UIViewSafeAreaLayoutGuide'.trailing (active)>",
"<NSLayoutConstraint:0x600002135cc0 UILayoutGuide:0x600003b381c0'barInsetsLeadingGuide'.width == 15 (active)>",
"<NSLayoutConstraint:0x600002135130 UILayoutGuide:0x600003b382a0'barInsetsTrailingGuide'.width == 15 (active)>",
"<NSLayoutConstraint:0x6000021350e0 H:[UILayoutGuide:0x600003b381c0'barInsetsLeadingGuide']-(0)-[UILayoutGuide:0x600003b38380'barInsetsContentGuide'] (active)>",
"<NSLayoutConstraint:0x600002100500 'UISV-canvas-connection' UIStackView:0x136f06500.leading == TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0.leading (active)>",
"<NSLayoutConstraint:0x600002101950 'UISV-canvas-connection' H:[TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0]-(0)-| (active, names: '|':UIStackView:0x136f06500 )>",
"<NSLayoutConstraint:0x600002102260 'UIView-Encapsulated-Layout-Width' UIStackView:0x136f06500.width == 0 (active)>",
"<NSLayoutConstraint:0x6000021362b0 'UIViewSafeAreaLayoutGuide-left' H:|-(0)-UILayoutGuide:0x600003b380e0'UIViewSafeAreaLayoutGuide' (active, names: '|':TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0 )>",
"<NSLayoutConstraint:0x600002136210 'UIViewSafeAreaLayoutGuide-right' H:[UILayoutGuide:0x600003b380e0'UIViewSafeAreaLayoutGuide']-(0)-|(LTR) (active, names: '|':TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0 )>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x6000021350e0 H:[UILayoutGuide:0x600003b381c0'barInsetsLeadingGuide']-(0)-[UILayoutGuide:0x600003b38380'barInsetsContentGuide'] (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.
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:0x6000021351d0 V:|-(0)-[UIStackView:0x136f09780] (active, names: '|':UIView:0x136f09930 )>",
"<NSLayoutConstraint:0x600002135860 UIStackView:0x136f09780.bottom == UIView:0x136f09930.bottom (active)>",
"<NSLayoutConstraint:0x600002136fd0 Tabman.TMLineBarIndicator:0x136f07c10.height == 2 (active)>",
"<NSLayoutConstraint:0x600002135720 V:|-(0)-[Tabman.TMLineBarIndicator:0x136f07c10] (active, names: '|':TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0 )>",
"<NSLayoutConstraint:0x6000021358b0 Tabman.TMLineBarIndicator:0x136f07c10.bottom == TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0.bottom (active)>",
"<NSLayoutConstraint:0x600002135f40 V:|-(0)-[UIStackView:0x136f09c60] (active, names: '|':Tabman.TMBarViewLayoutGrid:0x136f09ac0 )>",
"<NSLayoutConstraint:0x600002135c20 UIStackView:0x136f09c60.bottom == Tabman.TMBarViewLayoutGrid:0x136f09ac0.bottom (active)>",
"<NSLayoutConstraint:0x600002135a40 Tabman.TMBarViewLayoutGrid:0x136f09ac0.height == UIStackView:0x136f071d0.height (active)>",
"<NSLayoutConstraint:0x600002134410 V:|-(0)-[UIStackView:0x136f071d0] (active, names: '|':TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0 )>",
"<NSLayoutConstraint:0x600002134ff0 V:[UIStackView:0x136f071d0]-(0)-| (active, names: '|':TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0 )>",
"<NSLayoutConstraint:0x600002137de0 'UISV-canvas-connection' UIStackView:0x136f09e10.top == UIView:0x136f09930.top (active)>",
"<NSLayoutConstraint:0x600002137f70 'UISV-canvas-connection' V:[UIView:0x136f09930]-(0)-| (active, names: '|':UIStackView:0x136f09e10 )>",
"<NSLayoutConstraint:0x600002137e80 'UISV-canvas-connection' UIStackView:0x136f09c60.top == UIStackView:0x136f09e10.top (active)>",
"<NSLayoutConstraint:0x600002137f20 'UISV-canvas-connection' V:[TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0]-(0)-| (active, names: '|':UIStackView:0x136f09c60 )>",
"<NSLayoutConstraint:0x600002100cd0 'UISV-canvas-connection' UIStackView:0x136f06500.top == TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0.top (active)>",
"<NSLayoutConstraint:0x600002100aa0 'UISV-canvas-connection' V:[TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0]-(0)-| (active, names: '|':UIStackView:0x136f06500 )>",
"<NSLayoutConstraint:0x600002101a40 'UISV-spacing' V:[UIStackView:0x136f09e10]-(0)-[TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0] (active)>",
"<NSLayoutConstraint:0x6000021020d0 'UIView-Encapsulated-Layout-Height' UIStackView:0x136f06500.height == 0 (active)>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600002135860 UIStackView:0x136f09780.bottom == UIView:0x136f09930.bottom (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.
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:0x600002136fd0 Tabman.TMLineBarIndicator:0x136f07c10.height == 2 (active)>",
"<NSLayoutConstraint:0x600002135720 V:|-(0)-[Tabman.TMLineBarIndicator:0x136f07c10] (active, names: '|':TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0 )>",
"<NSLayoutConstraint:0x6000021358b0 Tabman.TMLineBarIndicator:0x136f07c10.bottom == TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0.bottom (active)>",
"<NSLayoutConstraint:0x600002135f40 V:|-(0)-[UIStackView:0x136f09c60] (active, names: '|':Tabman.TMBarViewLayoutGrid:0x136f09ac0 )>",
"<NSLayoutConstraint:0x600002135c20 UIStackView:0x136f09c60.bottom == Tabman.TMBarViewLayoutGrid:0x136f09ac0.bottom (active)>",
"<NSLayoutConstraint:0x600002135a40 Tabman.TMBarViewLayoutGrid:0x136f09ac0.height == UIStackView:0x136f071d0.height (active)>",
"<NSLayoutConstraint:0x600002134410 V:|-(0)-[UIStackView:0x136f071d0] (active, names: '|':TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0 )>",
"<NSLayoutConstraint:0x600002134ff0 V:[UIStackView:0x136f071d0]-(0)-| (active, names: '|':TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0 )>",
"<NSLayoutConstraint:0x600002137de0 'UISV-canvas-connection' UIStackView:0x136f09e10.top == UIView:0x136f09930.top (active)>",
"<NSLayoutConstraint:0x600002137f70 'UISV-canvas-connection' V:[UIView:0x136f09930]-(0)-| (active, names: '|':UIStackView:0x136f09e10 )>",
"<NSLayoutConstraint:0x600002137e80 'UISV-canvas-connection' UIStackView:0x136f09c60.top == UIStackView:0x136f09e10.top (active)>",
"<NSLayoutConstraint:0x600002137f20 'UISV-canvas-connection' V:[TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0]-(0)-| (active, names: '|':UIStackView:0x136f09c60 )>",
"<NSLayoutConstraint:0x600002100cd0 'UISV-canvas-connection' UIStackView:0x136f06500.top == TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0.top (active)>",
"<NSLayoutConstraint:0x600002100aa0 'UISV-canvas-connection' V:[TtGC6Tabman9TMBarViewCS_21TMHorizontalBarLayoutCS_16TMLabelBarButtonCS_18TMLineBarIndicator:0x136f06da0]-(0)-| (active, names: '|':UIStackView:0x136f06500 )>",
"<NSLayoutConstraint:0x600002101a40 'UISV-spacing' V:[UIStackView:0x136f09e10]-(0)-[TtGC6Tabman23TMBarIndicatorContainerCS_18TMLineBarIndicator:0x136f0a5c0] (active)>",
"<NSLayoutConstraint:0x6000021020d0 'UIView-Encapsulated-Layout-Height' UIStackView:0x136f06500.height == 0 (active)>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600002136fd0 Tabman.TMLineBarIndicator:0x136f07c10.height == 2 (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.
Failed to create 0x132 image slot (alpha=1 wide=1) (client=0xb406059) [0x5 (os/kern) failure]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant