Refactored storyboard fails to compile XCode7

2019-05-07 03:07发布

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".

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).

1条回答
forever°为你锁心
2楼-- · 2019-05-07 04:05

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.

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

查看更多
登录 后发表回答