PinCodeInputView icon indicating copy to clipboard operation
PinCodeInputView copied to clipboard

Layout constraint conflict

Open danqing opened this issue 6 years ago • 0 comments

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)>

danqing avatar Jun 19 '19 15:06 danqing