"Customize Toolbar" on NSToolbar Causes Autolayout Constraints Violation on macOS Sonoma

I have a customizable NSToolbar (using in a Mac Catalyst app "optimized for Mac").

When I right click and choose "Customize toolbar" I get the following error:

Conflicting constraints detected: (

"<NSLayoutConstraint:0x6000014a24e0 NSToolbarItemGroupView:0x13de568c0.width <= 88.5   (active)>",
"<NSAutoresizingMaskLayoutConstraint:0x6000014f5f90 h=--& v=--& NSToolbarItemGroupView:0x13de568c0.width == 89   (active)>"

).

Will attempt to recover by breaking <NSLayoutConstraint:0x6000014a24e0 NSToolbarItemGroupView:0x13de568c0.width <= 88.5 (active)>.

Unable to simultaneously satisfy constraints: (

"<NSLayoutConstraint:0x6000014a24e0 NSToolbarItemGroupView:0x13de568c0.width <= 88.5   (active)>",
"<NSAutoresizingMaskLayoutConstraint:0x6000014f5f90 h=--& v=--& NSToolbarItemGroupView:0x13de568c0.width == 89   (active)>"

)

Will attempt to recover by breaking constraint

<NSLayoutConstraint:0x6000014a24e0 NSToolbarItemGroupView:0x13de568c0.width <= 88.5 (active)>

Set the NSUserDefault >NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have ->[NSWindow visualizeConstraints:] automatically called when this happens. And/or, set a symbolic breakpoint on LAYOUT_CONSTRAINTS_NOT_SATISFIABLE to catch this in the debugger.

FB13257579

"Customize Toolbar" on NSToolbar Causes Autolayout Constraints Violation on macOS Sonoma
 
 
Q