Xcode 6..0.1无法编译故事板

时间:2014-09-18 19:48:33

标签: xcode6 ibtool

我刚刚将Xcode升级到6.0.1,我无法再编译了。 Xcode构建失败并出现以下错误:

    nwi_state: registration failed (1000000)
2014-09-18 12:46:28.977 Interface Builder Cocoa Touch Tool[19152:359412] The view hierarchy is not prepared for the constraint: <NSLayoutConstraint:0x7fb2cb5b5800 UIImageView:0x7fb2cb5893e0.centerY == UITableViewLabel:0x7fb2cb5a8950.centerY>
    When added to a view, the constraint's items must be descendants of that view (or the view itself). This will crash if the constraint needs to be resolved before the view hierarchy is assembled. Break on -[UIView _viewHierarchyUnpreparedForConstraint:] to debug.
2014-09-18 12:46:28.978 Interface Builder Cocoa Touch Tool[19152:359412] *** Assertion failure in -[UITableViewCellContentView _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:], /SourceCache/UIKit_Sim/UIKit-3318/NSLayoutConstraint_UIKitAdditions.m:558
Command /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool failed with exit code 255

1 个答案:

答案 0 :(得分:0)

根据日志中的这个说明:

当添加到视图时,约束的项必须是该视图的后代(或视图本身)。如果在组装视图层次结构之前需要解析约束,则会崩溃。打破 - [UIView _viewHierarchyUnpreparedForConstraint:]进行调试。

添加符号断点: - [UIView _viewHierarchyUnpreparedForConstraint:]

此外,您可能只想清除所涉及视图的约束。

相关问题