Xcode 7 view controller in embedded framework

Hi,

I create a test project:

Xcode7SwiftModule is main program
Section1 is an embedded framework


Here my Main.storyboard with the FirstViewController

The last element it's a Storyboard Reference object define like this:

In Section1 (my embedded framework) I have another storyboard Section1.storyboard with the SecondViewController

I can build my test project, display the FirstViewController but when I click on "Go to Section1ViewController" the application crash with the message:

2015-06-16 15:05:32.920 Xcode7SwiftModule[7494:1712281] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'Section' in bundle NSBundle </...../Developer/CoreSimulator/Devices/C0FD9F5E-F49E-44A8-8464-C96560ED312C/data/Containers/Bundle/Application/480FA9F7-F979-47A8-A5F6-138A5D98855E/Xcode7SwiftModule.app> (loaded)'


It's like the Storyboard Reference object ignore the path in the bundle field (?!?!?)


How I can create the link between my FirstViewController in the main storyboard and my SecondViewController in my embedded framework?

Can I defined my embedded framework as a project not as a target?
Could you tell me where I can find an example similar to my test project?


Regards
Tof


(To illustrate my case I drag/drop some screenshots but when I save the post I don't see them 😟 )

I was able to make this work in my project by using the reverse domain name of the bundle. So for example:


com.yourdomain.BundleName


Hope this helps!

Hi Tof,

I have exactly the same problem:

https://forums.developer.apple.com/message/175746#175746

Please let me know if you found a way to fix this!


PS@acwrightdesign: I use this as well, but it doesn't help 😟

Xcode 7 view controller in embedded framework
 
 
Q