SendBirdUIKit.SBUMessageInputView layout warnings

SDK versions:

  • SendBirdSDK (3.0.221)
  • SendBirdUIKit (2.1.8)

[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:0x600000da1ef0 UIView:0x7f8b257aa6d0.width == 0 (active)>”,
“<NSLayoutConstraint:0x600000da1680 UIStackView:0x7f8b2575d4c0.leading == UILayoutGuide:0x6000017408c0’UIViewSafeAreaLayoutGuide’.leading + 20 (active)>”,
“<NSLayoutConstraint:0x600000da1630 UIStackView:0x7f8b2575d4c0.trailing == UILayoutGuide:0x6000017408c0’UIViewSafeAreaLayoutGuide’.trailing - 16 (active)>”,
“<NSLayoutConstraint:0x600000d92530 H:|-(0)-SendBirdUIKit.SBUMessageInputView:0x7f8b25770d40 (active, names: ‘|’:UIView:0x7f8b2573baa0 )>”,
“<NSLayoutConstraint:0x600000d911d0 SendBirdUIKit.SBUMessageInputView:0x7f8b25770d40.right == UIView:0x7f8b2573baa0.right (active)>”,
“<NSLayoutConstraint:0x600000db48c0 ‘UISV-alignment’ UIView:0x7f8b257c5240.leading == UIView:0x7f8b257aa6d0.leading (active)>”,
“<NSLayoutConstraint:0x600000db4050 ‘UISV-alignment’ UIView:0x7f8b257c5240.trailing == UIView:0x7f8b257aa6d0.trailing (active)>”,
“<NSLayoutConstraint:0x600000db4960 ‘UISV-canvas-connection’ UIStackView:0x7f8b2575d4c0.leading == UIView:0x7f8b257c5240.leading (active)>”,
“<NSLayoutConstraint:0x600000db5310 ‘UISV-canvas-connection’ H:[UIView:0x7f8b257c5240]-(0)-| (active, names: ‘|’:UIStackView:0x7f8b2575d4c0 )>”,
“<NSLayoutConstraint:0x600000d8fde0 ‘UIView-Encapsulated-Layout-Width’ UIView:0x7f8b2573baa0.width == 390 (active)>”,
“<NSLayoutConstraint:0x600000da1220 ‘UIViewSafeAreaLayoutGuide-left’ H:|-(0)-UILayoutGuide:0x6000017408c0’UIViewSafeAreaLayoutGuide’ (active, names: ‘|’:SendBirdUIKit.SBUMessageInputView:0x7f8b25770d40 )>”,
“<NSLayoutConstraint:0x600000da1720 ‘UIViewSafeAreaLayoutGuide-right’ H:[UILayoutGuide:0x6000017408c0’UIViewSafeAreaLayoutGuide’]-(0)-|(LTR) (active, names: ‘|’:SendBirdUIKit.SBUMessageInputView:0x7f8b25770d40 )>”
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600000da1ef0 UIView:0x7f8b257aa6d0.width == 0 (active)>

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.

Make sure to fetch the latest changes, I’ve reported it and it got solved in this commit: Removed unnecessary user defined inspected properties on Main.storyboard · sendbird/sendbird-uikit-ios-sources@0bbfb6b · GitHub

Updated to the latest one:

**(**

**"<NSAutoresizingMaskLayoutConstraint:0x600001db7930 h=--& v=--& SendBirdUIKit.SBUEmptyView:0x7fd156e3e2d0.width == 0 (active)>",**

**"<NSLayoutConstraint:0x600001dfe0d0 UIImageView:0x7fd156e3ea80.width == 60 (active)>",**

**"<NSLayoutConstraint:0x600001dfd180 UIStackView:0x7fd156e3e8f0.centerX == SendBirdUIKit.SBUEmptyView:0x7fd156e3e2d0.centerX (active)>",**

**"<NSLayoutConstraint:0x600001dfdc20 UIStackView:0x7fd156e3e8f0.leading == UILayoutGuide:0x6000007febc0'UIViewSafeAreaLayoutGuide'.leading (active)>",**

**"<NSLayoutConstraint:0x600001d43de0 'UISV-canvas-connection' UIStackView:0x7fd156e3e8f0.leading == _UILayoutSpacer:0x6000001c53b0'UISV-alignment-spanner'.leading (active)>",**

**"<NSLayoutConstraint:0x600001d43d90 'UISV-canvas-connection' UIStackView:0x7fd156e3e8f0.centerX == UIImageView:0x7fd156e3ea80.centerX (active)>",**

**"<NSLayoutConstraint:0x600001d43b60 'UISV-spanning-boundary' _UILayoutSpacer:0x6000001c53b0'UISV-alignment-spanner'.leading <= UIImageView:0x7fd156e3ea80.leading (active)>",**

**"<NSLayoutConstraint:0x600001dfd950 'UIViewSafeAreaLayoutGuide-left' H:|-(0)-[UILayoutGuide:0x6000007febc0'UIViewSafeAreaLayoutGuide'](LTR) (active, names: '|':SendBirdUIKit.SBUEmptyView:0x7fd156e3e2d0 )>"**

**)**

**Will attempt to recover by breaking constraint**

**<NSLayoutConstraint:0x600001dfe0d0 UIImageView:0x7fd156e3ea80.width == 60 (active)>**