问题描述
我有一个 XIB
文件,该文件一直运行到今天-当我尝试在Xcode中打开它时,沙滩球出现了,一分钟后Xcode崩溃了。其他 XIB
也可以。另外,如果我只是直接在我的设备上构建并运行项目,它也可以工作(而XIB在该应用程序中也可以工作)。
I had a XIB
file which worked fine until today - when I try to open it in Xcode, the beachball appears and after 1 minute Xcode crashes. Others XIBs
work just fine. Also, if I just build and run the project right to my device, its also work (and XIB works at the app).
这是错误消息:
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
我将不胜感激!
推荐答案
您是否正在使用autoLayout属性?取消选中使用自动版式复选框,它应该可以正常工作。取消选中此选项,然后保存文件似乎可以更早地解决我的问题。请查看此链接以获取更多详细信息
Are you using the autoLayout Property ? Uncheck the checkbox that says Use AutoLayout and it should work fine. Unchecking this and then saving the file seems to fix the problem for me earlier. check this link for further details Xcode Interface Builder crashes when I edit storyboard
这篇关于当我打开特定的XIB文件时Xcode崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!