Repository: hackiftekhar/IQKeyboardManager

Issue #1592: Layout constraint problem, Xcode 11 and iOS 13
Created: 2019-09-03T22:04:02Z
Using the latest Xcode 11 beta and its' accompanying simulators (and a physical device) running iOS 13,  when trying to type in a UITextField, I get the following layout constraint error. This happens for any TextField on any of my views. I am using the latest version of IQKeyboardManager (6.4.1). I have never seen this before and I have been using the wonderful IQKeyboardManager for quite some time. I realize this is on beta software but just want to make sure this will not be an issue going forward as I've had iPhones (especially older ones) freeze up before in the wild because of layout constraint problems.
[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:0x6000004760d0 h=--& v=--& _UIToolbarContentView:0x7f8118925880.width == 0   (active)>",
"<NSLayoutConstraint:0x6000004ec550 H:|-(0)-[_UIButtonBarStackView:0x7f8118925d50]   (active, names: '|':_UIToolbarContentView:0x7f8118925880 )>",
"<NSLayoutConstraint:0x6000004eddb0 _UIButtonBarStackView:0x7f8118925d50.trailing == _UIToolbarContentView:0x7f8118925880.trailing   (active)>",
"<NSLayoutConstraint:0x60000045e170 'TB_Leading_Leading' H:|-(8)-[_UIModernBarButton:0x7f811875eef0'Done']   (active, names: '|':_UIButtonBarButton:0x7f811875eb90 )>",
"<NSLayoutConstraint:0x60000045e1c0 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x7f811875eef0'Done']-(0)-|   (active, names: '|':_UIButtonBarButton:0x7f811875eb90 )>",
"<NSLayoutConstraint:0x6000004754a0 'UISV-canvas-connection' UILayoutGuide:0x600001eca5a0'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x7f811875d850.leading   (active)>",
"<NSLayoutConstraint:0x600000475540 'UISV-canvas-connection' UILayoutGuide:0x600001eca5a0'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x7f811875eb90.trailing   (active)>",
"<NSLayoutConstraint:0x6000004754f0 'UISV-spacing' H:[_UIButtonBarButton:0x7f811875d850]-(0)-[UIView:0x7f811875dfe0]   (active)>",
"<NSLayoutConstraint:0x600000475590 'UISV-spacing' H:[UIView:0x7f811875dfe0]-(0)-[_UIButtonBarButton:0x7f811875e140]   (active)>",
"<NSLayoutConstraint:0x6000004755e0 'UISV-spacing' H:[_UIButtonBarButton:0x7f811875e140]-(0)-[UIView:0x7f811875e8d0]   (active)>",
"<NSLayoutConstraint:0x600000475630 'UISV-spacing' H:[UIView:0x7f811875e8d0]-(0)-[UIView:0x7f811892cbe0]   (active)>",
"<NSLayoutConstraint:0x600000475680 'UISV-spacing' H:[UIView:0x7f811892cbe0]-(0)-[UIView:0x7f811875ea30]   (active)>",
"<NSLayoutConstraint:0x6000004756d0 'UISV-spacing' H:[UIView:0x7f811875ea30]-(0)-[_UIButtonBarButton:0x7f811875eb90]   (active)>",
"<NSLayoutConstraint:0x6000004d40a0 'UIView-leftMargin-guide-constraint' H:|-(0)-UILayoutGuide:0x600001eca5a0'UIViewLayoutMarginsGuide'   (active, names: '|':_UIButtonBarStackView:0x7f8118925d50 )>",
"<NSLayoutConstraint:0x6000004c87d0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x600001eca5a0'UIViewLayoutMarginsGuide']-(0)-|(LTR)   (active, names: '|':_UIButtonBarStackView:0x7f8118925d50 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x60000045e1c0 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x7f811875eef0'Done']-(0)-|   (active, names: '|':_UIButtonBarButton:0x7f811875eb90 )>
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-09-04 15:23:02.298774-0700 DevSwitcher[99909:4970416] [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:0x6000004760d0 h=--& v=--& _UIToolbarContentView:0x7f8118925880.width == 0   (active)>",
"<NSLayoutConstraint:0x6000004ec550 H:|-(0)-[_UIButtonBarStackView:0x7f8118925d50]   (active, names: '|':_UIToolbarContentView:0x7f8118925880 )>",
"<NSLayoutConstraint:0x6000004eddb0 _UIButtonBarStackView:0x7f8118925d50.trailing == _UIToolbarContentView:0x7f8118925880.trailing   (active)>",
"<NSLayoutConstraint:0x60000045d270 'IB_Leading_Leading' H:|-(0)-[_UIModernBarButton:0x7f811875da20]   (active, names: '|':_UIButtonBarButton:0x7f811875d850 )>",
"<NSLayoutConstraint:0x60000045d2c0 'IB_Trailing_Trailing' H:[_UIModernBarButton:0x7f811875da20]-(>=8)-|   (active, names: '|':_UIButtonBarButton:0x7f811875d850 )>",
"<NSLayoutConstraint:0x6000004754a0 'UISV-canvas-connection' UILayoutGuide:0x600001eca5a0'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x7f811875d850.leading   (active)>",
"<NSLayoutConstraint:0x600000475540 'UISV-canvas-connection' UILayoutGuide:0x600001eca5a0'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x7f811875eb90.trailing   (active)>",
"<NSLayoutConstraint:0x6000004754f0 'UISV-spacing' H:[_UIButtonBarButton:0x7f811875d850]-(0)-[UIView:0x7f811875dfe0]   (active)>",
"<NSLayoutConstraint:0x600000475590 'UISV-spacing' H:[UIView:0x7f811875dfe0]-(0)-[_UIButtonBarButton:0x7f811875e140]   (active)>",
"<NSLayoutConstraint:0x6000004755e0 'UISV-spacing' H:[_UIButtonBarButton:0x7f811875e140]-(0)-[UIView:0x7f811875e8d0]   (active)>",
"<NSLayoutConstraint:0x600000475630 'UISV-spacing' H:[UIView:0x7f811875e8d0]-(0)-[UIView:0x7f811892cbe0]   (active)>",
"<NSLayoutConstraint:0x600000475680 'UISV-spacing' H:[UIView:0x7f811892cbe0]-(0)-[UIView:0x7f811875ea30]   (active)>",
"<NSLayoutConstraint:0x6000004756d0 'UISV-spacing' H:[UIView:0x7f811875ea30]-(0)-[_UIButtonBarButton:0x7f811875eb90]   (active)>",
"<NSLayoutConstraint:0x6000004d40a0 'UIView-leftMargin-guide-constraint' H:|-(0)-UILayoutGuide:0x600001eca5a0'UIViewLayoutMarginsGuide'   (active, names: '|':_UIButtonBarStackView:0x7f8118925d50 )>",
"<NSLayoutConstraint:0x6000004c87d0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x600001eca5a0'UIViewLayoutMarginsGuide']-(0)-|(LTR)   (active, names: '|':_UIButtonBarStackView:0x7f8118925d50 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x60000045d2c0 'IB_Trailing_Trailing' H:[_UIModernBarButton:0x7f811875da20]-(>=8)-|   (active, names: '|':_UIButtonBarButton:0x7f811875d850 )>
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-09-04 15:23:02.310129-0700 DevSwitcher[99909:4970416] [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:0x6000004760d0 h=--& v=--& _UIToolbarContentView:0x7f8118925880.width == 0   (active)>",
"<NSLayoutConstraint:0x6000004ec550 H:|-(0)-[_UIButtonBarStackView:0x7f8118925d50]   (active, names: '|':_UIToolbarContentView:0x7f8118925880 )>",
"<NSLayoutConstraint:0x6000004eddb0 _UIButtonBarStackView:0x7f8118925d50.trailing == _UIToolbarContentView:0x7f8118925880.trailing   (active)>",
"<NSLayoutConstraint:0x60000045d7c0 'IB_Leading_Leading' H:|-(>=5)-[_UIModernBarButton:0x7f811875e310]   (active, names: '|':_UIButtonBarButton:0x7f811875e140 )>",
"<NSLayoutConstraint:0x60000045d810 'IB_Trailing_Trailing' H:[_UIModernBarButton:0x7f811875e310]-(>=5)-|   (active, names: '|':_UIButtonBarButton:0x7f811875e140 )>",
"<NSLayoutConstraint:0x6000004754a0 'UISV-canvas-connection' UILayoutGuide:0x600001eca5a0'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x7f811875d850.leading   (active)>",
"<NSLayoutConstraint:0x600000475540 'UISV-canvas-connection' UILayoutGuide:0x600001eca5a0'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x7f811875eb90.trailing   (active)>",
"<NSLayoutConstraint:0x6000004754f0 'UISV-spacing' H:[_UIButtonBarButton:0x7f811875d850]-(0)-[UIView:0x7f811875dfe0]   (active)>",
"<NSLayoutConstraint:0x600000475590 'UISV-spacing' H:[UIView:0x7f811875dfe0]-(0)-[_UIButtonBarButton:0x7f811875e140]   (active)>",
"<NSLayoutConstraint:0x6000004755e0 'UISV-spacing' H:[_UIButtonBarButton:0x7f811875e140]-(0)-[UIView:0x7f811875e8d0]   (active)>",
"<NSLayoutConstraint:0x600000475630 'UISV-spacing' H:[UIView:0x7f811875e8d0]-(0)-[UIView:0x7f811892cbe0]   (active)>",
"<NSLayoutConstraint:0x600000475680 'UISV-spacing' H:[UIView:0x7f811892cbe0]-(0)-[UIView:0x7f811875ea30]   (active)>",
"<NSLayoutConstraint:0x6000004756d0 'UISV-spacing' H:[UIView:0x7f811875ea30]-(0)-[_UIButtonBarButton:0x7f811875eb90]   (active)>",
"<NSLayoutConstraint:0x6000004d40a0 'UIView-leftMargin-guide-constraint' H:|-(0)-UILayoutGuide:0x600001eca5a0'UIViewLayoutMarginsGuide'   (active, names: '|':_UIButtonBarStackView:0x7f8118925d50 )>",
"<NSLayoutConstraint:0x6000004c87d0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x600001eca5a0'UIViewLayoutMarginsGuide']-(0)-|(LTR)   (active, names: '|':_UIButtonBarStackView:0x7f8118925d50 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x60000045d810 'IB_Trailing_Trailing' H:[_UIModernBarButton:0x7f811875e310]-(>=5)-|   (active, names: '|':_UIButtonBarButton:0x7f811875e140 )>
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.

Duplicate issue #1607: Xcode 11 IQToolbar constraint issue.
Created: 2019-09-25T11:17:42Z
In Xcode 11 when the keyboard appeared I get "Unable to simultaneously satisfy constraints.".
It was working fine before Xcode 11. I had the same issue with my pickerview toolbar. I fixed it by simply specifying frame of my toolbar.
let toolBar = UIToolbar(frame: CGRect(x: 0, y: 0, width: view.frame.size.width, height: 35))
I tried to fix it in IQKeyboardManager, but I could not.
`[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:0x2819ee7b0 h=--& v=--& _UIToolbarContentView:0x137e13ce0.width == 0   (active)>",
"<NSLayoutConstraint:0x2819a0af0 H:|-(0)-[_UIButtonBarStackView:0x137e172e0]   (active, names: '|':_UIToolbarContentView:0x137e13ce0 )>",
"<NSLayoutConstraint:0x2819a1270 _UIButtonBarStackView:0x137e172e0.trailing == _UIToolbarContentView:0x137e13ce0.trailing   (active)>",
"<NSLayoutConstraint:0x2819ed450 'TB_Leading_Leading' H:|-(8)-[_UIModernBarButton:0x13c25f390'Done']   (active, names: '|':_UIButtonBarButton:0x13c25f1c0 )>",
"<NSLayoutConstraint:0x2819ed4a0 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x13c25f390'Done']-(0)-|   (active, names: '|':_UIButtonBarButton:0x13c25f1c0 )>",
"<NSLayoutConstraint:0x2819edb80 'UISV-canvas-connection' UILayoutGuide:0x2803949a0'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x13c25dde0.leading   (active)>",
"<NSLayoutConstraint:0x2819edbd0 'UISV-canvas-connection' UILayoutGuide:0x2803949a0'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x13c25f1c0.trailing   (active)>",
"<NSLayoutConstraint:0x2819edc20 'UISV-spacing' H:[_UIButtonBarButton:0x13c25dde0]-(0)-[UIView:0x13c25e570]   (active)>",
"<NSLayoutConstraint:0x2819edc70 'UISV-spacing' H:[UIView:0x13c25e570]-(0)-[_UIButtonBarButton:0x13c25e6d0]   (active)>",
"<NSLayoutConstraint:0x2819edcc0 'UISV-spacing' H:[_UIButtonBarButton:0x13c25e6d0]-(0)-[UIView:0x13c25ef00]   (active)>",
"<NSLayoutConstraint:0x2819edd10 'UISV-spacing' H:[UIView:0x13c25ef00]-(0)-[UIView:0x137e11c90]   (active)>",
"<NSLayoutConstraint:0x2819edd60 'UISV-spacing' H:[UIView:0x137e11c90]-(0)-[UIView:0x13c25f060]   (active)>",
"<NSLayoutConstraint:0x2819eddb0 'UISV-spacing' H:[UIView:0x13c25f060]-(0)-[_UIButtonBarButton:0x13c25f1c0]   (active)>",
"<NSLayoutConstraint:0x2819a3250 'UIView-leftMargin-guide-constraint' H:|-(0)-UILayoutGuide:0x2803949a0'UIViewLayoutMarginsGuide'   (active, names: '|':_UIButtonBarStackView:0x137e172e0 )>",
"<NSLayoutConstraint:0x2819a0b90 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x2803949a0'UIViewLayoutMarginsGuide']-(0)-|(LTR)   (active, names: '|':_UIButtonBarStackView:0x137e172e0 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x2819ed4a0 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x13c25f390'Done']-(0)-|   (active, names: '|':_UIButtonBarButton:0x13c25f1c0 )>
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.`

Closing comment (2019-09-26T05:53:19Z): Possible duplicate of #1592