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 conflict #10

Open
danqing opened this issue Jun 19, 2019 · 0 comments
Open

Layout constraint conflict #10

danqing opened this issue Jun 19, 2019 · 0 comments

Comments

@danqing
Copy link

danqing commented Jun 19, 2019

This is from running the demo project:

2019-06-19 23:35:59.883540+0800 Demo[91228:19194565] [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:0x600001a05a90 'UISV-canvas-connection' UIStackView:0x7fb4d1903cc0.leading == _TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb540405310.leading   (active)>",
    "<NSLayoutConstraint:0x600001a04b40 'UISV-canvas-connection' H:[_TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb5404098c0]-(0)-|   (active, names: '|':UIStackView:0x7fb4d1903cc0 )>",
    "<NSLayoutConstraint:0x600001a05db0 'UISV-fill-equally' _TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb540406670.width == _TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb540405310.width   (active)>",
    "<NSLayoutConstraint:0x600001a06580 'UISV-fill-equally' _TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb540407490.width == _TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb540405310.width   (active)>",
    "<NSLayoutConstraint:0x600001a05cc0 'UISV-fill-equally' _TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb5404080a0.width == _TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb540405310.width   (active)>",
    "<NSLayoutConstraint:0x600001a06670 'UISV-fill-equally' _TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb540408cb0.width == _TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb540405310.width   (active)>",
    "<NSLayoutConstraint:0x600001a067b0 'UISV-fill-equally' _TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb5404098c0.width == _TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb540405310.width   (active)>",
    "<NSLayoutConstraint:0x600001a05c70 'UISV-spacing' H:[_TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb540405310]-(8)-[_TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb540406670]   (active)>",
    "<NSLayoutConstraint:0x600001a063a0 'UISV-spacing' H:[_TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb540406670]-(8)-[_TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb540407490]   (active)>",
    "<NSLayoutConstraint:0x600001a065d0 'UISV-spacing' H:[_TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb540407490]-(8)-[_TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb5404080a0]   (active)>",
    "<NSLayoutConstraint:0x600001a06620 'UISV-spacing' H:[_TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb5404080a0]-(8)-[_TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb540408cb0]   (active)>",
    "<NSLayoutConstraint:0x600001a066c0 'UISV-spacing' H:[_TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb540408cb0]-(8)-[_TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb5404098c0]   (active)>",
    "<NSLayoutConstraint:0x600001a000f0 'UIView-Encapsulated-Layout-Width' UIStackView:0x7fb4d1903cc0.width == 0   (active)>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x600001a066c0 'UISV-spacing' H:[_TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb540408cb0]-(8)-[_TtGCGC16PinCodeInputView16PinCodeInputViewCS_8ItemView_P10$100d482f017ContainerItemViewS1__S1__:0x7fb5404098c0]   (active)>
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