Main.storyboard文档需要Xcode 8.0或更高版本 [英] The document Main.storyboard requires Xcode 8.0 or later

查看:273
本文介绍了Main.storyboard文档需要Xcode 8.0或更高版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了Xcode beta并打开了我现有的项目,看看它是如何与Xcode 8 beta一起工作的(我从Xcode 8打开了Storyboard文件)。

I downloaded Xcode beta and opened my existing project to see how it works with Xcode 8 beta (I opened Storyboard file from Xcode 8).

现在当我从Xcode 7.3打开我的项目时,我无法打开storyboard文件,它给了我以下错误

Now when I open my project from Xcode 7.3 I am not able to open storyboard file , it gives me following error


此版本不支持以Xcode 8格式保存的文档。
使用Xcode 8.0或更高版本打开此文档。

This version does not support documents saved in the Xcode 8 format. Open this document with Xcode 8.0 or later.


我该怎么办还原,因为我想继续使用Xcode 7。

What should I do to revert back, as I want to continue working on Xcode 7.

在Xcode 8中我被提示选择设备而我选择了iPhone 6S,我认为那部分是以某种方式负责故事板文件无法在Xcode 7中打开

In Xcode 8 I was prompted to select device and I selected iPhone 6S, I think that part is somehow responsible for storyboard file not opening in Xcode 7

推荐答案

我已经弄明白了:

在Xcode 8中打开你的故事板。

Open your Storyboard in Xcode 8.

点击文件检查器。

Interface Builder Document 部分,选择打开Xcode 7.x而不是Latest Xcode(8.0),如下面的屏幕截图所示:

In Interface Builder Document section, select Opens In "Xcode 7.x" instead of "Latest Xcode (8.0)", as in following screenshot:

< a href =https://i.stack.imgur.com/WFVdi.png>

执行此操作后,您将收到警报为Xcode 7.x保存将关闭您的文档,Xcode 8.0功能的数据将被删除。

On doing this, you will get an alert saying "Saving for Xcode 7.x will close your document and data for Xcode 8.0 features will be removed."

单击保存并关闭,您将能够打开故事板在Xode 7.x。

Click Save and Close and you will be able to open storyboard in Xode 7.x.

这篇关于Main.storyboard文档需要Xcode 8.0或更高版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆