This is due to the default constraints set by the system to match the autoresizing mask.
Log:
BaseView[16125:2837815] 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.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x7fecea4037f0 h=--& v=--& H:[UILabel:0x7fecea70b2e0'Some text'(0)]>",
"<NSLayoutConstraint:0x7fecea417bd0 H:|-(0)-[UILabel:0x7fecea70b2e0'Some text'](LTR) (Names: '|':BaseView.View:0x7fecea70c780 )>",
"<NSLayoutConstraint:0x7fecea417c70 UILabel:0x7fecea70b2e0'Some text'.right == BaseView.View:0x7fecea70c780.right>",
"<NSLayoutConstraint:0x7fecea404790 'UIView-Encapsulated-Layout-Width' H:[BaseView.View:0x7fecea70c780(375)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fecea417c70 UILabel:0x7fecea70b2e0'Some text'.right == BaseView.View:0x7fecea70c780.right>
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.
This is due to the default constraints set by the system to match the autoresizing mask.
Log: