Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Refactored storyboard fails to compile XCode7

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

like image 609
Tom Avatar asked Mar 15 '23 16:03

Tom


1 Answers

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.

like image 174
Tom Avatar answered Mar 29 '23 13:03

Tom