美文网首页
The document “Main.storyboard” |

The document “Main.storyboard” |

作者: Idoahc | 来源:发表于2016-12-05 16:45 被阅读33次

如果我们用低版本的Xcode打开高版本的Xcode创建的带有Main.storyboard或者LaunchScreen.stroyboard的项目时会出现这种错误,如下图

Main.storyboard LaunchScreen.stroyboard
一、解决办法是在工程中找到这两个目录

二、然后右键点击–Open As–Source Code。操作如下图
1、Main.storyboard的操作
Main.storyboard
2、LaunchScreen.stroyboard的操作
LaunchScreen.stroyboard
三、分别在这两个Source Code 里面删除下面这句代码
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>

然后就可以了。

PS:当然我们也可以避免这种情况的出现,举个栗子:

假如我们用的是Xcode8或者之后的版本创建的带有这两个stroyboard的文件的工程,而我们事先知道别人会用Xcode7来打开该工程,我们只要在这个地方少做修改,然后Xcode7打开的时候就不会出现如上错误。具体操作如下:

希望能给大家带来帮助。

相关文章

网友评论

      本文标题:The document “Main.storyboard” |

      本文链接:https://www.haomeiwen.com/subject/sxxlmttx.html