切换到main.storyboard时,Xcode 7.2.1不断崩溃

时间:2016-03-13 22:31:53

标签: ios xcode storyboard xcode7.2

我可以通过手动编辑main.storyboard文件并将useAutoLayout="YES"更改为useAutoLayout="NO"来阻止它在启动时崩溃,但是当我在Xcode中打开main.storyboard文件时,它给了我以下错误:

The document "Main.storyboard" had 4 internal inconsistencies that were found and repaired.
This may be due to an SCM operation such as merging. Please save the document to fix the inconsistencies.
This constraint is not in the referencing constraints for its first item [<Unknown ID>]: object ID K4p-Wa-FrY
This constraint's [object ID 4bY-ZD-KPO] second item is not in the document
This constraint is not in the referencing constraints for its first item [<Unknown ID>]: object ID p48-i6-mG1
This constraint is not in the referencing constraints for its first item [<Unknown ID>]: object ID f2a-1r-b55

当我点击“OK”后保存它时,Xcode再次崩溃。

如何阻止它崩溃以便我可以编辑我的故事板?

Here's崩溃详情,如果有帮助的话。

1 个答案:

答案 0 :(得分:5)

我明白了。我不得不用文本编辑器打开main.storyboard文件,并删除包含Xcode正在大喊大叫的对象ID的所有行。