During starting Carplay app (checked with different apps) simulation I have error in Xcode about constraints. May be there is bug in the library. For example, app CoastalRoads have this output (Tested in Xcode 14.3, MacBook Pro M1):
2023-05-17 12:41:01.914169+0300 CoastalRoads[3274:63652] [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.
(
"<NSAutoresizingMaskLayoutConstraint:0x6000021f4640 h=--- v=--- CPWindow:0x133514820.height == 240 (active)>",
"<NSLayoutConstraint:0x6000021ed270 CPWindow:0x133514820.top == UILayoutGuide:0x600003ba8ee0''.top - 44 (active)>",
"<NSLayoutConstraint:0x6000021ed2c0 V:[UILayoutGuide:0x600003ba8ee0'']-(240)-| (active, names: '|':CPWindow:0x133514820 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x6000021ed270 CPWindow:0x133514820.top == UILayoutGuide:0x600003ba8ee0''.top - 44 (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.