This error is somewhat long:
Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list are 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) > "
)
Would 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> could also be helpfu L.
My error reason: is agreed to the margin connected with two lines (2 conflicting constrains);
Click on the yellow warning (?? ), find the conflicting lines, check, and easily find the problem.
It appears to be a direct red error, now is the yellow warning?
Automatic layout error (two lines conflict): Unable to simultaneously satisfy constraints