Search code examples
iosxcodenslayoutconstraint

Xcode logs showing constraint errors, however there're no errors in Storyboard file


This is surprise, I'm not sure, but my Xcode's debug logs showing me, some random constraint errors however, there're no errors in Storyboard file (and it doesn't effect anywhere in my app).

I'm posting this question just to make sure that there's some serious issue or something that I'm missing from my side?

Here's my log:

2016-02-04 17:46:17.432 MyApp[3586:198217] 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:0x7fe19aeebd00 V:[UIButton:0x7fe19aeedee0(44)]>",
    "<NSLayoutConstraint:0x7fe19aef0cf0 V:[UIButton:0x7fe19aeedee0]-(-1)-|   (Names: '|':UITableViewCellContentView:0x7fe19aeed8e0 )>",
    "<NSLayoutConstraint:0x7fe19aef0d40 V:|-(0)-[UIButton:0x7fe19aeedee0]   (Names: '|':UITableViewCellContentView:0x7fe19aeed8e0 )>",
    "<NSLayoutConstraint:0x7fe19d007580 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x7fe19aeed8e0(44)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fe19aeebd00 V:[UIButton:0x7fe19aeedee0(44)]>

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-02-04 17:46:17.434 MyApp[3586:198217] 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:0x7fe19d0124a0 V:[UIButton:0x7fe19d0121f0(44)]>",
    "<NSLayoutConstraint:0x7fe19d014420 V:[UIButton:0x7fe19d0121f0]-(-1)-|   (Names: '|':UITableViewCellContentView:0x7fe19d012060 )>",
    "<NSLayoutConstraint:0x7fe19d014470 V:|-(0)-[UIButton:0x7fe19d0121f0]   (Names: '|':UITableViewCellContentView:0x7fe19d012060 )>",
    "<NSLayoutConstraint:0x7fe19d00bb90 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x7fe19d012060(44)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fe19d0124a0 V:[UIButton:0x7fe19d0121f0(44)]>

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-02-04 17:46:17.435 MyApp[3586:198217] 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:0x7fe19d019820 V:[UIButton:0x7fe19d019570(44)]>",
    "<NSLayoutConstraint:0x7fe19d01b7a0 V:[UIButton:0x7fe19d019570]-(-1)-|   (Names: '|':UITableViewCellContentView:0x7fe19d0193e0 )>",
    "<NSLayoutConstraint:0x7fe19d01b7f0 V:|-(0)-[UIButton:0x7fe19d019570]   (Names: '|':UITableViewCellContentView:0x7fe19d0193e0 )>",
    "<NSLayoutConstraint:0x7fe19d01f130 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x7fe19d0193e0(44)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fe19d019820 V:[UIButton:0x7fe19d019570(44)]>

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-02-04 17:46:17.436 MyApp[3586:198217] 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:0x7fe19d020640 V:[UIButton:0x7fe19d020390(44)]>",
    "<NSLayoutConstraint:0x7fe19d022460 V:[UIButton:0x7fe19d020390]-(-1)-|   (Names: '|':UITableViewCellContentView:0x7fe19d020200 )>",
    "<NSLayoutConstraint:0x7fe19d0224b0 V:|-(0)-[UIButton:0x7fe19d020390]   (Names: '|':UITableViewCellContentView:0x7fe19d020200 )>",
    "<NSLayoutConstraint:0x7fe19ac90e20 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x7fe19d020200(44)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fe19d020640 V:[UIButton:0x7fe19d020390(44)]>

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-02-04 17:46:17.438 MyApp[3586:198217] 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:0x7fe19d027410 V:[UIButton:0x7fe19d027160(44)]>",
    "<NSLayoutConstraint:0x7fe19d029390 V:[UIButton:0x7fe19d027160]-(-1)-|   (Names: '|':UITableViewCellContentView:0x7fe19d026fd0 )>",
    "<NSLayoutConstraint:0x7fe19d0293e0 V:|-(0)-[UIButton:0x7fe19d027160]   (Names: '|':UITableViewCellContentView:0x7fe19d026fd0 )>",
    "<NSLayoutConstraint:0x7fe19ac7da90 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x7fe19d026fd0(44)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fe19d027410 V:[UIButton:0x7fe19d027160(44)]>

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-02-04 17:46:17.439 MyApp[3586:198217] 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:0x7fe19d02e2c0 V:[UIButton:0x7fe19d02e010(44)]>",
    "<NSLayoutConstraint:0x7fe19d030240 V:[UIButton:0x7fe19d02e010]-(-1)-|   (Names: '|':UITableViewCellContentView:0x7fe19d02de80 )>",
    "<NSLayoutConstraint:0x7fe19d030290 V:|-(0)-[UIButton:0x7fe19d02e010]   (Names: '|':UITableViewCellContentView:0x7fe19d02de80 )>",
    "<NSLayoutConstraint:0x7fe19af28d90 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x7fe19d02de80(44)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fe19d02e2c0 V:[UIButton:0x7fe19d02e010(44)]>

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.

Here's my Storyboard views list:

enter image description here

Configuration:

Xcode v.7.1.1

iOS v.9.1.


Solution

  • The constraints given by you are breaking somewhere. That's why it is showing an error. So identify the constraints that you don't need and remove them. (e.g. Repeated constraints or the constraints that doesn't make any sense such as you are giving leading and trailing and also fixed width.)