iOS-Custom-AlertView-Swift icon indicating copy to clipboard operation
iOS-Custom-AlertView-Swift copied to clipboard

Alert not visible

Open pratyushpratiksinha opened this issue 6 years ago • 0 comments

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) ( "<NSAutoresizingMaskLayoutConstraint:0x28029ae40 h=--& v=--& UIImageView:0x105db4f20.midX == 228.5 (active)>", "<NSAutoresizingMaskLayoutConstraint:0x28029abc0 h=--& v=--& UIImageView:0x105db4f20.width == 48 (active)>", "<NSAutoresizingMaskLayoutConstraint:0x2802966c0 h=-&- v=-&- UIView:0x105d4c300.width == WizCounsel.ViewEndContract:0x105d2ea30.width (active)>", "<NSLayoutConstraint:0x280287de0 H:|-(8)-[WizCounsel.ClassButtonSizeClass:0x105dc75c0'Reason for terminating co...'] (active, names: '|':UIView:0x105d4c4e0 )>", "<NSLayoutConstraint:0x280286c60 H:|-(16)-[UIView:0x105d4c4e0] (active, names: '|':UIView:0x105d4c300 )>", "<NSLayoutConstraint:0x28029aee0 UIImageView:0x105db4f20.trailing == UIView:0x105d4c300.trailing - 32 (active)>", "<NSLayoutConstraint:0x2802f0050 '_UITemporaryLayoutWidth' WizCounsel.ViewEndContract:0x105d2ea30.width == 375 (active)>" )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x280287de0 H:|-(8)-[WizCounsel.ClassButtonSizeClass:0x105dc75c0'Reason for terminating co...'] (active, names: '|':UIView:0x105d4c4e0 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful. 2019-11-07 13:11:59.930188+0530 WizCounsel[6611:2467153] [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. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) ( "<NSAutoresizingMaskLayoutConstraint:0x28029ae40 h=--& v=--& UIImageView:0x105db4f20.midX == 216.5 (active)>", "<NSAutoresizingMaskLayoutConstraint:0x28029abc0 h=--& v=--& UIImageView:0x105db4f20.width == 24 (active)>", "<NSAutoresizingMaskLayoutConstraint:0x2802966c0 h=-&- v=-&- UIView:0x105d4c300.width == WizCounsel.ViewEndContract:0x105d2ea30.width (active)>", "<NSLayoutConstraint:0x280287de0 H:|-(8)-[WizCounsel.ClassButtonSizeClass:0x105dc75c0'Reason for terminating co...'] (active, names: '|':UIView:0x105d4c4e0 )>", "<NSLayoutConstraint:0x280286c60 H:|-(16)-[UIView:0x105d4c4e0] (active, names: '|':UIView:0x105d4c300 )>", "<NSLayoutConstraint:0x28029aee0 UIImageView:0x105db4f20.trailing == UIView:0x105d4c300.trailing - 32 (active)>", "<NSLayoutConstraint:0x280280960 '_UITemporaryLayoutWidth' WizCounsel.ViewEndContract:0x105d2ea30.width == 375 (active)>" )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x280287de0 H:|-(8)-[WizCounsel.ClassButtonSizeClass:0x105dc75c0'Reason for terminating co...'] (active, names: '|':UIView:0x105d4c4e0 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.

pratyushpratiksinha avatar Nov 07 '19 07:11 pratyushpratiksinha