[英]iOS Simulator: “Unable to simultaneously satisfy constraints” with empty app
这是Xcode 7.2,Simulator 9.2,iOS 9.2,OS X 10.11.2。
无缘无故地在我们的项目中遇到约束错误,并将事情归结为一开始。 现在,当没有自定义内容时,只有默认的空白视图控制器会怎样?
仅在真实设备上进行测试并希望达到最佳效果似乎不是一个好的解决方案...
确实,它显示了一个错误日志,但是如果您检查冲突的视图,它们似乎是私有的( UIInputSetContainerView
, UITextEffectsWindow
),这可能表明是Apple错误。
2016-01-14 14:45:22.765 Teste[17945:2314568] 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:0x7fee78e27a00 V:|-(20)-[UIInputSetContainerView:0x7fee78e25000] (Names: '|':UITextEffectsWindow:0x7fee78e20330 )>",
"<NSLayoutConstraint:0x7fee78c90e30 'UIInputWindowController-top' V:|-(0)-[UIInputSetContainerView:0x7fee78e25000] (Names: '|':UITextEffectsWindow:0x7fee78e20330 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fee78e27a00 V:|-(20)-[UIInputSetContainerView:0x7fee78e25000] (Names: '|':UITextEffectsWindow:0x7fee78e20330 )>
我在Apple Developer Forums上发现了同样的问题。
我认为,如果您实际上看不到任何损坏的东西,可以放心地忽略它。 希望对您有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.