Skip to content

Instantly share code, notes, and snippets.

@tanis2000
Created June 24, 2015 09:12
Show Gist options
  • Save tanis2000/5b1d3677e37b4d337e04 to your computer and use it in GitHub Desktop.
Save tanis2000/5b1d3677e37b4d337e04 to your computer and use it in GitHub Desktop.
Console log of autolayout issues
2015-06-24 10:35:44.719 SwagUp[1013:108392] 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)
(
"<NSLayoutConstraint:0x17429bdf0 V:[UIImageView:0x155d20030(30)]>",
"<NSLayoutConstraint:0x17429bbc0 V:[UIView:0x155e5d4a0(>=270)]>",
"<NSLayoutConstraint:0x170480b90 V:[UIView:0x155d35390(149)]>",
"<NSLayoutConstraint:0x17828ee70 V:[UIImageView:0x155d20030]-(0)-[UIView:0x155e5d4a0]>",
"<NSLayoutConstraint:0x17828ef60 UIImageView:0x155d20030.top == UIView:0x155d34640.topMargin + 32>",
"<NSLayoutConstraint:0x17828f000 V:[UIView:0x155d35390]-(0)-| (Names: '|':UIView:0x155d34640 )>",
"<NSLayoutConstraint:0x174282fd0 V:[UIView:0x155e5d4a0]-(0)-[UIView:0x155d35390]>",
"<NSLayoutConstraint:0x178293380 'UIView-Encapsulated-Layout-Height' V:[UIView:0x155d34640(480)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x17429bbc0 V:[UIView:0x155e5d4a0(>=270)]>
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.
2015-06-24 10:35:44.723 SwagUp[1013:108392] -[LSApplicationProxy isDescendantOfView:]: unrecognized selector sent to instance 0x155e67f90
2015-06-24 10:35:44.723 SwagUp[1013:108392] -[LSApplicationProxy isDescendantOfView:]: unrecognized selector sent to instance 0x155e67f90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment