Can't figure out conflicting constraints in app

4068 views ios
6

I have looked around and found lots of similar issues, tried all suggestions and solutions but didn't manage to figure out what causes my errors.

For the record: I don't have errors causing to crash my app, it's merely a debug issue. I am new to Swift and have built everything I have now with articles, tutorials on YouTube and feedback/answers from Stack Overflow.

Now, I have exactly what I want, which can be seen here, in a screenshot.

However, while I am able to run the app perfectly, I get a lot of debug errors:

2018-09-16 16:20:30.030871+0200 prjExplanation[12946:529268] [LayoutConstraints] 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:0x6040002810e0 V:|-(16)-[UIImageView:0x7fe8b2f1dd00]   (active, names: '|':prjExplanation.socialCell:0x7fe8b2c1c970 )>",
    "<NSLayoutConstraint:0x604000281360 UIImageView:0x7fe8b2f1dd00.height == 60   (active)>",
    "<NSLayoutConstraint:0x6040002816d0 V:[UIImageView:0x7fe8b2f1dd00]-(16)-[UIView:0x7fe8b2c21a70]   (active)>",
    "<NSLayoutConstraint:0x604000281680 UIView:0x7fe8b2c21a70.height == 1   (active)>",
    "<NSLayoutConstraint:0x6040002811d0 V:[UIView:0x7fe8b2c21a70]-(0)-|   (active, names: '|':prjExplanation.socialCell:0x7fe8b2c1c970 )>",
    "<NSLayoutConstraint:0x604000281310 V:|-(16)-[UILabel:0x7fe8b2f1e4f0'Author_203']   (active, names: '|':prjExplanation.socialCell:0x7fe8b2c1c970 )>",
    "<NSLayoutConstraint:0x60400009f8b0 UILabel:0x7fe8b2f1e4f0'Author_203'.height == 20   (active)>",
    "<NSLayoutConstraint:0x60400009c430 V:[UILabel:0x7fe8b2f1e4f0'Author_203']-(2)-|   (active, names: '|':prjExplanation.socialCell:0x7fe8b2c1c970 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x6040002816d0 V:[UIImageView:0x7fe8b2f1dd00]-(16)-[UIView:0x7fe8b2c21a70]   (active)>

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.
2018-09-16 16:20:30.043291+0200 prjExplanation[12946:529268] [LayoutConstraints] 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:0x6040002820d0 V:|-(16)-[UIImageView:0x7fe8b2f274a0]   (active, names: '|':prjExplanation.socialCell:0x7fe8b2f26bc0 )>",
    "<NSLayoutConstraint:0x604000281ea0 UIImageView:0x7fe8b2f274a0.height == 60   (active)>",
    "<NSLayoutConstraint:0x604000282300 V:[UIImageView:0x7fe8b2f274a0]-(16)-[UIView:0x7fe8b2d0b880]   (active)>",
    "<NSLayoutConstraint:0x604000282120 UIView:0x7fe8b2d0b880.height == 1   (active)>",
    "<NSLayoutConstraint:0x604000281d60 V:[UIView:0x7fe8b2d0b880]-(0)-|   (active, names: '|':prjExplanation.socialCell:0x7fe8b2f26bc0 )>",
    "<NSLayoutConstraint:0x6040002823f0 V:|-(16)-[UILabel:0x7fe8b2f276d0'Author_203']   (active, names: '|':prjExplanation.socialCell:0x7fe8b2f26bc0 )>",
    "<NSLayoutConstraint:0x6040002823a0 UILabel:0x7fe8b2f276d0'Author_203'.height == 20   (active)>",
    "<NSLayoutConstraint:0x604000281ef0 V:[UILabel:0x7fe8b2f276d0'Author_203']-(2)-|   (active, names: '|':prjExplanation.socialCell:0x7fe8b2f26bc0 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x604000282300 V:[UIImageView:0x7fe8b2f274a0]-(16)-[UIView:0x7fe8b2d0b880]   (active)>

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.
2018-09-16 16:20:30.085207+0200 prjExplanation[12946:529268] [LayoutConstraints] 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:0x6040002838e0 V:|-(16)-[UIImageView:0x7fe8b2d0e5c0]   (active, names: '|':prjExplanation.socialCell:0x7fe8b2d0e330 )>",
    "<NSLayoutConstraint:0x6040002836b0 UIImageView:0x7fe8b2d0e5c0.height == 60   (active)>",
    "<NSLayoutConstraint:0x6

answered question

1 Answer

5

Remainder of debug errors, because body content was too long:

2018-09-16 16:20:30.124002+0200 prjExplanation[12946:529268] [LayoutConstraints] 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:0x6040002846f0 V:|-(16)-[UIImageView:0x7fe8b2e05fe0]   (active, names: '|':prjExplanation.socialCell:0x7fe8b2e05d50 )>",
    "<NSLayoutConstraint:0x604000284740 UIImageView:0x7fe8b2e05fe0.height == 60   (active)>",
    "<NSLayoutConstraint:0x604000284790 V:[UIImageView:0x7fe8b2e05fe0]-(16)-[UIView:0x7fe8b2c25c20]   (active)>",
    "<NSLayoutConstraint:0x6040002847e0 UIView:0x7fe8b2c25c20.height == 1   (active)>",
    "<NSLayoutConstraint:0x604000284830 V:[UIView:0x7fe8b2c25c20]-(0)-|   (active, names: '|':prjExplanation.socialCell:0x7fe8b2e05d50 )>",
    "<NSLayoutConstraint:0x604000282b70 'UIView-Encapsulated-Layout-Height' prjExplanation.socialCell:0x7fe8b2e05d50.height == 152.375   (active)>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x604000284790 V:[UIImageView:0x7fe8b2e05fe0]-(16)-[UIView:0x7fe8b2c25c20]   (active)>

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.
2018-09-16 16:20:30.125237+0200 prjExplanation[12946:529268] [LayoutConstraints] 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:0x60000028b400 V:|-(16)-[UILabel:0x7fe8b2d153e0'Author_203']   (active, names: '|':prjExplanation.socialCell:0x7fe8b2d14f20 )>",
    "<NSLayoutConstraint:0x60000028b450 UILabel:0x7fe8b2d153e0'Author_203'.height == 20   (active)>",
    "<NSLayoutConstraint:0x60000028b4a0 V:[UILabel:0x7fe8b2d153e0'Author_203']-(2)-|   (active, names: '|':prjExplanation.socialCell:0x7fe8b2d14f20 )>",
    "<NSLayoutConstraint:0x60000028adc0 'UIView-Encapsulated-Layout-Height' prjExplanation.socialCell:0x7fe8b2d14f20.height == 152.375   (active)>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x60000028b4a0 V:[UILabel:0x7fe8b2d153e0'Author_203']-(2)-|   (active, names: '|':prjExplanation.socialCell:0x7fe8b2d14f20 )>

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.
2018-09-16 16:20:30.125915+0200 prjExplanation[12946:529268] [LayoutConstraints] 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:0x60000028b1d0 V:|-(16)-[UIImageView:0x7fe8b2d151b0]   (active, names: '|':prjExplanation.socialCell:0x7fe8b2d14f20 )>",
    "<NSLayoutConstraint:0x60000028b220 UIImageView:0x7fe8b2d151b0.height == 60   (active)>",
    "<NSLayoutConstraint:0x60000028b270 V:[UIImageView:0x7fe8b2d151b0]-(16)-[UIView:0x7fe8b2c278a0]   (active)>",
    "<NSLayoutConstraint:0x60000028b2c0 UIView:0x7fe8b2c278a0.height == 1   (active)>",
    "<NSLayoutConstraint:0x60000028b310 V:[UIView:0x7fe8b2c278a0]-(0)-|   (active, names: '|':prjExplanation.socialCell:0x7fe8b2d14f20 )>",
    "<NSLayoutConstraint:0x60000028adc0 'UIView-Encapsulated-Layout-Height' prjExplanation.socialCell:0x7fe8b2d14f20.height == 152.375   (active)>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x60000028b270 V:[UIImageView:0x7fe8b2d151b0]-(16)-[UIView:0x7fe8b2c278a0]   (active)>

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.
objc[12946]: Class VCWeakObjectHolder is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AVConference.framework/Frameworks/ViceroyTrace.framework/ViceroyTrace (0x1234934d0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AVConference.framework/AVConference (0x1225bfe38). One of the two will be used. Which one is undefined.

posted this

Have an answer?

JD

Please login first before posting an answer.