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

Fix Constraint Issue #4

Open
twodayslate opened this issue Aug 23, 2019 · 0 comments
Open

Fix Constraint Issue #4

twodayslate opened this issue Aug 23, 2019 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@twodayslate
Copy link
Owner

twodayslate commented Aug 23, 2019

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 twodayslate added help wanted Extra attention is needed good first issue Good for newcomers labels Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant