自动布局报错(两条连线冲突):Unable to simultaneously satisfy constraints
Posted wangwei-Carry
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了自动布局报错(两条连线冲突):Unable to simultaneously satisfy constraints相关的知识,希望对你有一定的参考价值。
这个报错有些长:
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:0x600000096580 H:[UIButton:0x7fc8eb408a50\'Button\']-(2)-| (active, names: \'|\':UIView:0x7fc8eb40d330 )>",
"<NSLayoutConstraint:0x600000096670 H:[UIButton:0x7fc8eb408a50\'Button\']-(3)-| (active, names: \'|\':UIView:0x7fc8eb40d330 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600000096670 H:[UIButton:0x7fc8eb408a50\'Button\']-(3)-| (active, names: \'|\':UIView:0x7fc8eb40d330 )>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
我的报错原因: 就是同意的边距连了两条线(2 conflicting constrains);
点击 黄色的警告(⚠️),找到冲突的线,检查,很容易找到问题。
之前好像是直接显示红色报错的,now是 黄色警告?
以上是关于自动布局报错(两条连线冲突):Unable to simultaneously satisfy constraints的主要内容,如果未能解决你的问题,请参考以下文章
Springboot项目编译正常启动Unable to start embedded Tomcat报错
struts报错 严重: Unable to find parent packages struts_default改怎么解决
报错org.openqa.selenium.WebDriverException: disconnected: unable to connect to renderer解决方法
oracle安装故障:完美解决xhost +报错: unable to open display “”
python运行ui出现报错selenium.common.exceptions.NoSuchElementException: Message: Unable to find element wit
Nacos 启动报错 Unable to start web server……Unable to start embedded Tomcat