当来电发生时,我在我的项目中遇到以下消息......
---------------在调试区开始记录消息---------------
2015-11-12 18:19:16.707 test[75925:6804554] 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)
(
"<NSLayoutConstraint:0x7fafbacbeba0 V:|-(20)-[UIInputSetContainerView:0x7fafbacbca20] (Names: '|':UITextEffectsWindow:0x7fafbac12b20 )>",
"<NSLayoutConstraint:0x7fafbac04390 'UIInputWindowController-top' V:|-(0)-[UIInputSetContainerView:0x7fafbacbca20] (Names: '|':UITextEffectsWindow:0x7fafbac12b20 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fafbacbeba0 V:|-(20)-[UIInputSetContainerView:0x7fafbacbca20] (Names: '|':UITextEffectsWindow:0x7fafbac12b20 )>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
---------------调试区内的结束日志消息---------------
因此,我决定逐步解构我的视图,直到此消息消失以确定哪个约束负责。我一无所获。
实际上,它也发生在一个几乎空的项目中。
例如:
你看到了同样的问题。
这是来自XCode的错误还是我错过了什么? (我使用这个XCode 7.0.1)
我该怎么办?
事先,谢谢你的答案。