Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflicting layout constraints #111

Open
brendenwest opened this issue Jul 22, 2015 · 1 comment
Open

Conflicting layout constraints #111

brendenwest opened this issue Jul 22, 2015 · 1 comment

Comments

@brendenwest
Copy link

I'm getting layout constraint warnings like below (APCStudyOverviewCollectionViewController) for many AppCore view controllers out of the box. That is with no changes on my part.

Has anyone else seen these?


2015-07-22 15:18:00.452 myApp[3046:271833] 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:0x7fa546014d30 V:[UIView:0x7fa546012cd0(343)]>",
"<NSLayoutConstraint:0x7fa5460153e0 UIView:0x7fa546012cd0.top == UIView:0x7fa546012bc0.topMargin - 8>",
"<NSLayoutConstraint:0x7fa546015480 UIView:0x7fa546012bc0.bottomMargin == UIView:0x7fa546012cd0.bottom - 8>",
"<NSAutoresizingMaskLayoutConstraint:0x7fa546018090 h=--& v=--& V:[UIView:0x7fa546012bc0(50)]>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fa546014d30 V:[UIView:0x7fa546012cd0(343)]>

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.

@p2
Copy link
Member

p2 commented Jul 24, 2015

Yes. Some were fixed, some re-introduced conflicting constraints.

Erin-Mounts pushed a commit to Erin-Mounts/AppCore that referenced this issue Mar 11, 2016
[BRIDGE-1183] 409 on consent just means...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants