On the iPhone 12 mini simulator I often see layout constraint errors.
2021-03-06 09:20:31.163725+0100 NthKey[90155:17206710] screen parameters are unexpected: MGScreenClass1125x2436x3x495 SCREEN_TYPE(1125,2436,3,495)
2021-03-06 09:20:31.191147+0100 NthKey[90155:17206710] Metal API Validation Enabled
2021-03-06 09:20:31.417162+0100 NthKey[90155:17206710] The filter 'CIPortraitEffectSpillCorrection' is not implemented in the bundle at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/CoreImage/PortraitFilters.cifilter.
2021-03-06 09:20:31.446079+0100 NthKey[90155:17206710] screen parameters are unexpected: MGScreenClass1125x2436x3x495 SCREEN_TYPE(1125,2436,3,495)
2021-03-06 09:20:31.446377+0100 NthKey[90155:17206710] screen parameters are unexpected: MGScreenClass1125x2436x3x495 SCREEN_TYPE(1125,2436,3,495)
2021-03-06 09:20:31.446540+0100 NthKey[90155:17206710] screen parameters are unexpected: MGScreenClass1125x2436x3x495 SCREEN_TYPE(1125,2436,3,495)
2021-03-06 09:20:31.446673+0100 NthKey[90155:17206710] screen parameters are unexpected: MGScreenClass1125x2436x3x495 SCREEN_TYPE(1125,2436,3,495)
2021-03-06 09:20:31.446827+0100 NthKey[90155:17206710] screen parameters are unexpected: MGScreenClass1125x2436x3x495 SCREEN_TYPE(1125,2436,3,495)
2021-03-06 09:20:31.447074+0100 NthKey[90155:17206710] screen parameters are unexpected: MGScreenClass1125x2436x3x495 SCREEN_TYPE(1125,2436,3,495)
2021-03-06 09:20:31.461530+0100 NthKey[90155:17206710] [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:0x60000105f890 'BIB_Trailing_CB_Leading' H:[_UIModernBarButton:0x7fb37bc33ea0]-(6)-[_UIModernBarButton:0x7fb37bc31160'Address'] (active)>",
"<NSLayoutConstraint:0x60000105f8e0 'CB_Trailing_Trailing' _UIModernBarButton:0x7fb37bc31160'Address'.trailing <= _UIButtonBarButton:0x7fb37bc30990.trailing (active)>",
"<NSLayoutConstraint:0x600001048640 'UINav_static_button_horiz_position' _UIModernBarButton:0x7fb37bc33ea0.leading == UILayoutGuide:0x600000a71b20'UIViewLayoutMarginsGuide'.leading (active)>",
"<NSLayoutConstraint:0x600001048690 'UINavItemContentGuide-leading' H:[_UIButtonBarButton:0x7fb37bc30990]-(0)-[UILayoutGuide:0x600000a71a40'UINavigationBarItemContentLayoutGuide'] (active)>",
"<NSLayoutConstraint:0x600001055090 'UINavItemContentGuide-trailing' UILayoutGuide:0x600000a71a40'UINavigationBarItemContentLayoutGuide'.trailing == _UINavigationBarContentView:0x7fb37bd22c80.trailing (active)>",
"<NSLayoutConstraint:0x600001048e10 'UIView-Encapsulated-Layout-Width' _UINavigationBarContentView:0x7fb37bd22c80.width == 0 (active)>",
"<NSLayoutConstraint:0x600001055450 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x600000a71b20'UIViewLayoutMarginsGuide'](LTR) (active, names: '|':_UINavigationBarContentView:0x7fb37bd22c80 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x60000105f890 'BIB_Trailing_CB_Leading' H:[_UIModernBarButton:0x7fb37bc33ea0]-(6)-[_UIModernBarButton:0x7fb37bc31160'Address'] (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.
2021-03-06 09:20:31.618760+0100 NthKey[90155:17206710] screen parameters are unexpected: MGScreenClass1125x2436x3x495 SCREEN_TYPE(1125,2436,3,495)