How to see objects that set UIAlertForUnsatisfiableConstraints?

73 views Asked by At

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:0x17ece100 H:[UIView:0x17eaa690(86.6667)]>",
    "<NSLayoutConstraint:0x17eb5200 UIButton:0x17d82f60.leading == UIView:0x17eaa690.leading + 5>",
    "<NSLayoutConstraint:0x17ecf820 UIButton:0x17d82f60.trailing == UIView:0x17eaa690.trailing - 5>",
    "<NSLayoutConstraint:0x17ed0020 H:[UIButton:0x17d82f60(73.3333)]>"
)

I tried setting symbolic breakepoint at UIViewAlertForUnsatisfiableConstraints but app just stops, here i saw this example

All i want to see, which button or view is there?

Will attempt to recover by breaking constraint

<NSLayoutConstraint:0x191f0920 H:[MPKnockoutButton:0x17a876b0]-(34)-[MPDetailSlider:0x17a8bc50](LTR)>
0

There are 0 answers