我有一个XIB
文件工作正常,直到今天 - 当我尝试在Xcode中打开它时,沙滩球出现并在1分钟后Xcode崩溃。其他XIBs
工作正常。此外,如果我只是构建并运行项目直接到我的设备,它也工作(和XIB在应用程序工作)。
以下是错误消息:
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 4G1004
ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-1929/IBPlugin/Utilities/IBObjectMarshalling.m:651
Details: Failed to arbitrate IBNSLayoutConstraint, IBUIButton, IBUIImageView, IBUILabel, IBUITextField, and IBUIView.
Interface Builder encountered an error communicating with the iOS Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.
Exception name: NSInternalInconsistencyException
我会感激任何想法和想法!
答案 0 :(得分:11)
如果单击xib文件后Xcode崩溃,您将无法取消选中使用AutoLayout 。以下是改变它的方法:
<bool key="IBDocument.UseAutolayout">YES</bool>
YES
更改为NO
答案 1 :(得分:0)
您使用的是autoLayout属性吗?取消选中使用自动布局的复选框,它应该可以正常工作。取消选中此项然后保存文件似乎可以解决我之前的问题。请查看此链接以获取更多详细信息Xcode Interface Builder crashes when I edit storyboard