Unable to simultaneously satisfy constraints.

Hello,

I have created a new Xcode project, and I have added only ONE Text Field container to the canvas without ADDING any constraints to it. When I run the app on iPad and click the text field to enter an input, the keyboard pops up and I get the warning below printed on the console.

Could someone please clarify whether this needs to be resolved by Apple or there is something we, developers, can do to address this issue.

Thanks


/ ------------------ WARNING ------------------ /
[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:0x60000137bc50 h=--& v=--& _UIButtonBarButton:0x7fcc0ed3f310.height == 0  (active)>",
  "<NSLayoutConstraint:0x60000137b070 V:|-(6)-[_UIUCBKBSelectionBackground:0x7fcc0ed40720]  (active, names: '|':_UIButtonBarButton:0x7fcc0ed3f310 )>",
  "<NSLayoutConstraint:0x60000137b110 _UIUCBKBSelectionBackground:0x7fcc0ed40720.bottom == _UIButtonBarButton:0x7fcc0ed3f310.bottom - 6  (active)>"
)

there is something we, developers, can do

It happens deep within the implementation of SwiftUI, so there's nothing we can do.
You can find some (many?) reports about the same warning in SwiftUI, but I cannot find any definite answers to solve them.
Better ignore it (or just send a feedback to Apple) unless your code causes some broken layout.

I have the exact same problem on xcode 14.2... anybody help?

Same issue here in iOS 17. Broken constraints warning is triggered even time a text field is shown with Passwords input type and Passwords keyboard accessory view.

Unable to simultaneously satisfy constraints.
 
 
Q