kstenerud / iOS-Universal-Framework

An XCode project template to build universal frameworks (arm7, arm7s, and simulator) for iOS / iPhone.
2.95k stars 474 forks source link

How can iOS-Universal-Framework using storyboard in a Framework? #192

Open mrgaolei opened 9 years ago

mrgaolei commented 9 years ago

I create a storyboard file in Framework project and load it from framework-project-name.m, then I archive this project, all things looks OK.

But when I import this Framework in to a SinglePageProject and call framework-project-name.m's method, it crashed!

Xcode tell me can't found xxx.storyboard in bundle.

mickmgit commented 9 years ago

I'm going on memory from a while ago, but I think this is correct. What we found was that Xcode does not like a compiled storyboard (Foo.storyboardc) in with the framework. If you remove the compiled storyboard and copy the uncompiled storyboard into the framework, it works fine. This is only when you include the framework in a separate project. We have a test app within the same project as the framework, and the compiled storyboard works there, but when it is an app in a separate project, it doesn't work.