重构的故事板无法编译XCode7 [英] Refactored storyboard fails to compile XCode7

查看:52
本文介绍了重构的故事板无法编译XCode7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已决定使用XCode7中的新"Storyboard重构"功能将(相当复杂的)情节提要板分成较小的块.我从一个选项卡开始,然后将该选项卡式导航控制器中的所有控制器重构为单独的文件.但是情节提要板无法使用"Storyboard引用不能成为iOS 9.0之前的关系主题的目的地"来编译..

I've decided to split the my (quite complex) storyboard into smaller chunks using the new "Storyboard refactor" feature in XCode7. I've started with one tab and refactored all the controllers within that tabbed navigation controller into separate file. But the storyboard fails to compile with "Storyboard References cannot be the destinations of relationship segues prior to iOS 9.0".

现在我已经阅读了故事板引用应该可以部署到iOS8(这是我们的部署目标).故事板引用现在可以部署到iOS 8,OS X 10.10和watchOS 1." .这可能不是正确的,但是问题是,即使将部署目标更改为iOS 9(并执行干净的构建),我也会遇到相同的错误.

Now I've read that storyboard references should be deployable to iOS8 (which is our deployment target) "Storyboard References may now be deployed to iOS 8, OS X 10.10, and watchOS 1.". This might not be true but the problem is that I'm getting the same error even when change the deployment target to iOS 9 (and do a clean build).

推荐答案

啊,愚蠢的我.弄清楚了.错误消息实际上表明问题出在哪里-您不能将引用用于关系segues-例如导航(或标签栏)控制器与其第一个子控件之间的引用.这些必须位于同一个情节提要中.

Ah, silly me. Figured it out. The error message actually says where the problem is - you can't use the reference for the relationship segues - like the one between navigation (or tabbar) controller and its first child. These have to be in the same storyboard.

尽管错误消息中提到iOS9令人困惑.

Though the mention of iOS9 in the error message is confusing.

这篇关于重构的故事板无法编译XCode7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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