Post

Replies

Boosts

Views

Activity

Reply to iOS 16 Navigation bar buttons - unable to satisfy constraints
@Apple has this been fixed? My layouts in my Objective-C iOS app broke as a result of iOS Beta 16. After reading the release notes and my own code I narrowed it down to the NSLayoutConstraints. I think this is what is causing the issue. I think my issue is caused by the same category of bug. Here is my error: 2022-08-18 13:57:19.535175-0700 Ember[5032:864329] [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:0x282c0ada0 _UIToolbarContentView:0x14750f280.width ==>", "<NSLayoutConstraint:0x282c09bd0 _UIButtonBarStackView:0x1475085f0.leading == _UIToolbarContentView:0x14750f280.leading + 16>", "<NSLayoutConstraint:0x282c09c20 _UIToolbarContentView:0x14750f280.trailing == _UIButtonBarStackView:0x1475085f0.trailing>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x282c09c20 _UIToolbarContentView:0x14750f280.trailing == _UIButtonBarStackView:0x1475085f0.trailing> 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.
Topic: UI Frameworks SubTopic: UIKit Tags:
Aug ’22