Skip to content

Instantly share code, notes, and snippets.

@toruuetani
Created March 4, 2016 08:03
Show Gist options
  • Save toruuetani/b7fc2419f8046c3058a9 to your computer and use it in GitHub Desktop.
Save toruuetani/b7fc2419f8046c3058a9 to your computer and use it in GitHub Desktop.
Xcode Error
2016-03-04 17:01:22.452 ParkingDemo[4049:2668694] 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:0x1366aa540 H:[_UIButtonBarStackView:0x1366a4c40(<=0)]>",
"<NSLayoutConstraint:0x1366a5940 'UIView-leftMargin-guide-constraint' H:|-(5)-[UILayoutGuide:0x1366a5770'UIViewLayoutMarginsGuide'](LTR) (Names: '|':_UIButtonBarStackView:0x1366a4c40 )>",
"<NSLayoutConstraint:0x1366a59e0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x1366a5770'UIViewLayoutMarginsGuide']-(5)-|(LTR) (Names: '|':_UIButtonBarStackView:0x1366a4c40 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x1366a59e0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x1366a5770'UIViewLayoutMarginsGuide']-(5)-|(LTR) (Names: '|':_UIButtonBarStackView:0x1366a4c40 )>
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.
2016-03-04 17:01:22.456 ParkingDemo[4049:2668694] 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:0x1366aab10 H:[_UIButtonBarStackView:0x1366a8780(<=0)]>",
"<NSLayoutConstraint:0x1366a9940 'UIView-leftMargin-guide-constraint' H:|-(5)-[UILayoutGuide:0x1366a9820'UIViewLayoutMarginsGuide'](LTR) (Names: '|':_UIButtonBarStackView:0x1366a8780 )>",
"<NSLayoutConstraint:0x1366a99e0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x1366a9820'UIViewLayoutMarginsGuide']-(5)-|(LTR) (Names: '|':_UIButtonBarStackView:0x1366a8780 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x1366a99e0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x1366a9820'UIViewLayoutMarginsGuide']-(5)-|(LTR) (Names: '|':_UIButtonBarStackView:0x1366a8780 )>
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.
@saiday
Copy link

saiday commented Jun 23, 2016

Hi, I encounter the same error, but have no idea at all.

Do you solve this error?

@MainasuK
Copy link

I got the same error when I type in text with keyboard.

I find that but it's not helpful.
http://www.openradar.me/23087563

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment