Refactored storyboard fails to compile XCode7

邮差的信 提交于 2020-01-02 05:59:12

问题


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:


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.



来源:https://stackoverflow.com/questions/32772990/refactored-storyboard-fails-to-compile-xcode7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!