SplitView icon indicating copy to clipboard operation
SplitView copied to clipboard

Fix Constraint Issue

Open twodayslate opened this issue 4 years ago • 0 comments

This happens when you change the axis. I am not sure exactly how to fix this issue. The good thing is that this this doesn't break functionality.

2019-08-23 13:43:23.551077-0400 app[73592:7943791] [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:0x600000b108c0 SplitView.SplitViewHandle:0x7fb1fe511de0.width == 18   (active)>",
    "<NSLayoutConstraint:0x600000b31310 H:|-(0)-[UIStackView:0x7fb1fe505f30]   (active, names: '|':SplitView.SplitView:0x7fb1fe50e370 )>",
    "<NSLayoutConstraint:0x600000b31680 H:[UIStackView:0x7fb1fe505f30]-(0)-|   (active, names: '|':SplitView.SplitView:0x7fb1fe50e370 )>",
    "<NSLayoutConstraint:0x600000b3b9d0 H:|-(0)-[UIStackView:0x7fb1fe7059d0]   (active, names: '|':UIView:0x7fb1fe705400 )>",
    "<NSLayoutConstraint:0x600000b3ba20 H:[UIStackView:0x7fb1fe7059d0]-(0)-|   (active, names: '|':UIView:0x7fb1fe705400 )>",
    "<NSLayoutConstraint:0x600000b37f20 'UISV-alignment' WKWebView:0x7fb21e823c00'zac.gorak.us'.leading == SplitView.SplitViewHandle:0x7fb1fe511de0.leading   (active)>",
    "<NSLayoutConstraint:0x600000b3a990 'UISV-alignment' WKWebView:0x7fb21e823c00'zac.gorak.us'.trailing == SplitView.SplitViewHandle:0x7fb1fe511de0.trailing   (active)>",
    "<NSLayoutConstraint:0x600000b39590 'UISV-alignment' Toolbar.leading == SplitView.SplitView:0x7fb1fe50e370.leading   (active, names: Toolbar:0x7fb1fe70c380 )>",
    "<NSLayoutConstraint:0x600000b395e0 'UISV-alignment' Toolbar.trailing == SplitView.SplitView:0x7fb1fe50e370.trailing   (active, names: Toolbar:0x7fb1fe70c380 )>",
    "<NSLayoutConstraint:0x600000b37e30 'UISV-canvas-connection' UIStackView:0x7fb1fe505f30.leading == WKWebView:0x7fb21e823c00'zac.gorak.us'.leading   (active)>",
    "<NSLayoutConstraint:0x600000b37ed0 'UISV-canvas-connection' H:[WKWebView:0x7fb21e823c00'zac.gorak.us']-(0)-|   (active, names: '|':UIStackView:0x7fb1fe505f30 )>",
    "<NSLayoutConstraint:0x600000b394a0 'UISV-canvas-connection' UIStackView:0x7fb1fe7059d0.leading == Toolbar.leading   (active, names: Toolbar:0x7fb1fe70c380 )>",
    "<NSLayoutConstraint:0x600000b394f0 'UISV-canvas-connection' H:[Toolbar]-(0)-|   (active, names: Toolbar:0x7fb1fe70c380, '|':UIStackView:0x7fb1fe7059d0 )>",
    "<NSLayoutConstraint:0x600000b39680 'UIView-Encapsulated-Layout-Width' UIView:0x7fb1fe705400.width == 1024   (active)>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x600000b108c0 SplitView.SplitViewHandle:0x7fb1fe511de0.width == 18   (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.

twodayslate avatar Aug 23 '19 17:08 twodayslate