Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Playlist constraints warning message appearing when running app

When I run the app I get the following warning message appearing, any ideas?

2016-03-28 02:12:30.712 Algorhythm[1718:1199517] 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:0x137d8b0e0 H:|-(0)-[UIImageView:0x137d869c0] (Names: '|':UIView:0x137d89e70 )>", "<NSLayoutConstraint:0x137d8b130 UIImageView:0x137d869c0.leading == UIView:0x137d89e70.leadingMargin>" )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x137d8b130 UIImageView:0x137d869c0.leading == UIView:0x137d89e70.leadingMargin>

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-28 02:12:30.715 Algorhythm[1718:1199517] 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:0x137d8b1d0 H:[UIImageView:0x137d869c0]-(0)-| (Names: '|':UIView:0x137d89e70 )>", "<NSLayoutConstraint:0x137d8b270 UIView:0x137d89e70.trailingMargin == UIImageView:0x137d869c0.trailing>" )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x137d8b270 UIView:0x137d89e70.trailingMargin == UIImageView:0x137d869c0.trailing>

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-28 02:12:30.734 Algorhythm[1718:1199517] 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:0x137d87b40 UIImageView:0x137d869c0.width == 1.10345*UIImageView:0x137d869c0.height>", "<NSLayoutConstraint:0x137d8a3d0 UIView:0x137d8a000.width == 2.66667*UIView:0x137d8a000.height>", "<NSLayoutConstraint:0x137d8b0e0 H:|-(0)-[UIImageView:0x137d869c0] (Names: '|':UIView:0x137d89e70 )>", "<NSLayoutConstraint:0x137d8b180 V:[_UILayoutGuide:0x137d8a690]-(0)-[UIImageView:0x137d869c0]>", "<NSLayoutConstraint:0x137d8b1d0 H:[UIImageView:0x137d869c0]-(0)-| (Names: '|':UIView:0x137d89e70 )>", "<NSLayoutConstraint:0x137d8b2c0 H:|-(0)-[UIView:0x137d8a000] (Names: '|':UIView:0x137d89e70 )>", "<NSLayoutConstraint:0x137d8b310 H:[UIView:0x137d8a000]-(0)-| (Names: '|':UIView:0x137d89e70 )>", "<NSLayoutConstraint:0x137d8b360 UIView:0x137d8a000.bottom == UIImageView:0x137d869c0.bottom>", "<NSLayoutConstraint:0x137d8b3b0 V:[_UILayoutGuide:0x137d8a690]-(170)-[UIView:0x137d8a000]>", "<NSLayoutConstraint:0x137da3de0 'UIView-Encapsulated-Layout-Width' H:[UIView:0x137d89e70(375)]>" )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x137d8a3d0 UIView:0x137d8a000.width == 2.66667*UIView:0x137d8a000.height>

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.

1 Answer

What this means is that you have set at least two constraints that conflict with each other. If you look at the Storyboard you should see the conflicting constraints marked in red. It's usually best to delete one of them and then figure out what new (non-conflicting) constraint you may need in place of the conflicting one.