无法在Xcode 6.1中打开故事板

时间:2022-02-23 20:52:04

The document "MainStoryboard.storyboard" could not be opened. The operation couldn’t be completed. (com.apple.InterfaceBuilder error -1.)

无法打开文档“MainStoryboard.storyboard”。操作无法完成。 (com.apple.InterfaceBuilder错误-1。)

This is the error that I see every time I click on storyboard of project.

这是我每次点击项目的故事板时看到的错误。

1 个解决方案

#1


0  

Had the same error when opening a storyboard in Xcode 6 for the first time.

第一次在Xcode 6中打开故事板时出现同样的错误。

One solution is to open the storyboard with your text editor of choice and manually set auto layout to false: useAutolayout="NO". Problem with this approach is that you'll loose all of your layout constraints.

一种解决方案是使用您选择的文本编辑器打开故事板,并手动将自动布局设置为false:useAutolayout =“NO”。这种方法的问题在于您将失去所有布局约束。

Another option that worked well for me, was to install Xcode 5.1, open the storyboard and, in File Inspector in section Interface Builder Document, update Opens in option to use Default (5.1), then open the storyboard again in Xcode 6.

另一个对我有用的选择是安装Xcode 5.1,打开故事板,在Interface Inspector的Interface Builder Document部分,更新打开选项以使用默认(5.1),然后在Xcode 6中再次打开故事板。

#1


0  

Had the same error when opening a storyboard in Xcode 6 for the first time.

第一次在Xcode 6中打开故事板时出现同样的错误。

One solution is to open the storyboard with your text editor of choice and manually set auto layout to false: useAutolayout="NO". Problem with this approach is that you'll loose all of your layout constraints.

一种解决方案是使用您选择的文本编辑器打开故事板,并手动将自动布局设置为false:useAutolayout =“NO”。这种方法的问题在于您将失去所有布局约束。

Another option that worked well for me, was to install Xcode 5.1, open the storyboard and, in File Inspector in section Interface Builder Document, update Opens in option to use Default (5.1), then open the storyboard again in Xcode 6.

另一个对我有用的选择是安装Xcode 5.1,打开故事板,在Interface Inspector的Interface Builder Document部分,更新打开选项以使用默认(5.1),然后在Xcode 6中再次打开故事板。