Xcode 将尝试通过打破钛的约束来恢复
我收到了这些错误信息 这些消息每秒钟出现一次,并填满控制台窗口 我搜索了一下,发现它与iOS窗口布局有关,我现在可以忽略这些消息 然而,信息的洪流将发展的其他重要信息赶了出去 如果我更改了错误级别,它会再次出现 如果我将[info]静音,则会出现[error] 有什么好办法可以避免这种情况吗 我的环境是Xcode 将尝试通过打破钛的约束来恢复,xcode,titanium,Xcode,Titanium,我收到了这些错误信息 这些消息每秒钟出现一次,并填满控制台窗口 我搜索了一下,发现它与iOS窗口布局有关,我现在可以忽略这些消息 然而,信息的洪流将发展的其他重要信息赶了出去 如果我更改了错误级别,它会再次出现 如果我将[info]静音,则会出现[error] 有什么好办法可以避免这种情况吗 我的环境是 iOS 9.2.1 CLI版本5.0.5 钛合金SDK版本5.1.1.GA :log [INFO]将尝试通过破坏约束进行恢复 [信息] [信息] [信息]在UIViewAlertForUns
- iOS 9.2.1
- CLI版本5.0.5
- 钛合金SDK版本5.1.1.GA
[INFO]将尝试通过破坏约束进行恢复
[信息]
[信息]
[信息]在UIViewAlertForUnsatifiableConstraints处创建一个符号断点,以便在调试器中捕获该断点。
[信息]中列出的UIView上UIConstraintBasedLayoutDebugging类别中的方法也可能有用。
[信息]无法同时满足约束。
[INFO]下面列表中至少有一个约束是您不想要的。
[信息]试试这个:
[信息](1)查看每个约束,并尝试找出您不期望的约束;
[信息](2)查找添加不需要的约束的代码并修复它。
[信息](注意:如果您看到不理解的NSAutoresizingMaskLayoutConstraints,请参阅UIView属性TranslatesAutoResizingMaskToConstraints的文档)
[信息](
[信息]“”,
[信息]“”,
[信息]“”,
[信息]“”,
[信息]“”,
[信息]“”,
[信息]“”,
[信息]“”,
[信息]“”,
[信息]“”,
[信息]“”
[信息])
[信息]
这看起来不太好。我不知道是什么导致了输出,但我相信iOS团队中的一位工程师可以找到答案。如果你不介意的话,请在创建一个票证,并附加一个简单的应用程序来复制这个问题。我还不确定是什么代码导致了这个错误,但很难制作简单的应用程序,让我试试。
[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]