我正在遭受这些错误消息。
这些消息每隔几秒就出现一次并填满控制台窗口。
我google了一下,发现它与iOS窗口布局有关,我现在可以忽略这些消息。
然而,大量的信息会发出其他重要的信息来发展。
如果我甚至更改错误级别,它会再次出现。
如果我将[info]静音,则会出现[错误]。
有什么好方法可以避免这种情况吗?
我的环境是
:登录
[INFO] Will attempt to recover by breaking constraint
[INFO] <NSLayoutConstraint:0x12d75b650 H:[MPKnockoutButton:0x12d6e94e0]-(34)-[MPDetailSlider:0x12d73ed30](LTR)>
[INFO]
[INFO] Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
[INFO] The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
[INFO] Unable to simultaneously satisfy constraints.
[INFO] Probably at least one of the constraints in the following list is one you don't want.
[INFO] Try this:
[INFO] (1) look at each constraint and try to figure out which you don't expect;
[INFO] (2) find the code that added the unwanted constraint or constraints and fix it.
[INFO] (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
[INFO] (
[INFO] "<NSAutoresizingMaskLayoutConstraint:0x12d7458a0 h=-&- v=-&- _UIBackdropContentView:0x12d73d2a0.midX == _UIBackdropView:0x12d739f80.midX>",
[INFO] "<NSAutoresizingMaskLayoutConstraint:0x12d7458f0 h=-&- v=-&- _UIBackdropContentView:0x12d73d2a0.width == _UIBackdropView:0x12d739f80.width>",
[INFO] "<NSAutoresizingMaskLayoutConstraint:0x12d746890 h=-&- v=-&- MPVideoPlaybackOverlayView:0x12d5effe0.width == MPVideoContainerView:0x12d72bc50.width>",
[INFO] "<NSAutoresizingMaskLayoutConstraint:0x12d746150 h=-&- v=-&- MPVideoContainerView:0x12d72bc50.width == MPSwipableView:0x12d6cc040.width>",
[INFO] "<NSLayoutConstraint:0x12d75b5d0 H:|-(34)-[MPKnockoutButton:0x12d6e94e0](LTR) (Names: '|':_UIBackdropContentView:0x12d73d2a0 )>",
[INFO] "<NSLayoutConstraint:0x12d75b650 H:[MPKnockoutButton:0x12d6e94e0]-(34)-[MPDetailSlider:0x12d73ed30](LTR)>",
[INFO] "<NSLayoutConstraint:0x12d75b6a0 H:[MPDetailSlider:0x12d73ed30]-(34)-[UIView:0x12d73de70](LTR)>",
[INFO] "<NSLayoutConstraint:0x12d75b770 UIView:0x12d73de70.right == _UIBackdropView:0x12d739f80.right - 34>",
[INFO] "<NSLayoutConstraint:0x12d73eb40 H:|-(0)-[_UIBackdropView:0x12d739f80] (Names: '|':MPVideoPlaybackOverlayView:0x12d5effe0 )>",
[INFO] "<NSLayoutConstraint:0x12d6d4b30 H:[_UIBackdropView:0x12d739f80]-(0)-| (Names: '|':MPVideoPlaybackOverlayView:0x12d5effe0 )>",
[INFO] "<NSLayoutConstraint:0x12d7b3180 '_UITemporaryLayoutWidth' H:[MPSwipableView:0x12d6cc040(0)]>"
[INFO] )
[INFO]