0

I have added constraints to my view in app.I am getting below error message.I am not able to undertstand what actually went wrong with constraints.So how can i understand thier exact meaning.

    "<NSLayoutConstraint:0x7fd0135d4c30 UIImageView:0x7fd0135d7470.width == 0.634361*UIImageView:0x7fd0135d7470.height>",
    "<NSLayoutConstraint:0x7fd01347c6c0 H:[UIImageView:0x7fd01347d270(20)]>",
    "<NSLayoutConstraint:0x7fd01347df10 H:|-(79)-[UIImageView:0x7fd01347d270]   (Names: '|':UIView:0x7fd013479d10 )>",
    "<NSLayoutConstraint:0x7fd01347df60 H:[UIImageView:0x7fd01347d270]-(60)-|   (Names: '|':UIView:0x7fd013479d10 )>",
    "<NSLayoutConstraint:0x7fd01347eb50 UIView:0x7fd013474330.width == 1.33058*UIView:0x7fd013474330.height>",
    "<NSLayoutConstraint:0x7fd01347f410 UIView:0x7fd013479d10.leading == UIView:0x7fd013479810.leading>",
    "<NSLayoutConstraint:0x7fd01347f460 UIView:0x7fd013479d10.trailing == UIView:0x7fd013479810.trailing>",
    "<NSLayoutConstraint:0x7fd01347f500 UIView:0x7fd013479810.width == 1.31405*UIView:0x7fd013474330.height>",
    "<NSLayoutConstraint:0x7fd013481970 UIImageView:0x7fd0135d7470.width == 0.507042*UIView:0x7fd01347fcd0.height>",
    "<NSLayoutConstraint:0x7fd0134819c0 UIView:0x7fd013474330.width == 0.354626*UIImageView:0x7fd0135d7470.height>",
    "<NSLayoutConstraint:0x7fd0134884d0 'UIView-Encapsulated-Layout-Height' V:[UIView:0x7fd01347fcd0(667)]>"
Dheeraj Kumar
  • 327
  • 2
  • 6
  • 19

1 Answers1

0

I founded solution by adding a unique id to each constraint.I added id from attribute inspector.After log printed the exact constraint id which i added & which was causing the issue.

Below link helped me alot Unable to simultaneously satisfy constraints, will attempt to recover by breaking constraint

Community
  • 1
  • 1
Dheeraj Kumar
  • 327
  • 2
  • 6
  • 19