title: How can I include my resource files in my framework without using a separate bundle?
body: <p>I've been following this guide to create an iOS static library: <a href="https://github.com/jverkoey/iOS-Framework#walkthrough" rel="noreferrer">https://github.com/jverkoey/iOS-Framework#walkthrough</a>. I managed to create a framework that can be imported into another Xcode project.</p>
  
  <p>Now, I want my framework to be able to show a Storyboard. I imagine that the <code>.storyboard</code> file counts as a resource. The previous guide states that I should create a Bundle for my resource files, such as images, instead of putting them in the framework itself.</p>
  
  <p>However, I <strong>do</strong> want to put them in the framework itself. I don't want to use a separate bundle.</p>
  
  <p>All guides I find around tell me the same thing. I understand the advantages of using a separate bundle, but I just don't want to do it right now.</p>
  
  <p>Now then, I am lost on how to include my <code>.storyboard</code> file in my framework so that I can show it with this:</p>
  
  <pre><code>UIStoryboard *sb = [UIStoryboard storyboardWithName:@"NameOfStoryboard" bundle:[NSBundle bundleForClass:[self class]]];
  UIViewController *vc = [sb instantiateViewControllerWithIdentifier:@"NameOfViewController"];
  [otherView presentViewController:vc animated:YES completion:NULL];
  </code></pre>
  
  <p>The above code does not seem to work (it can't find the storyboard file). I imagine this is because the <code>.storyboard</code> is not currently included in the framework. Sadly, I don't know how to include it.</p>
  
  <p>In the framework's Xcode project, under Build Phases, I see a tab labeled "Copy files" which looks like what I need.</p>
  
  <p><a href="https://i.stack.imgur.com/UGb0U.png" rel="noreferrer"><img src="https://i.stack.imgur.com/UGb0U.png" alt="enter image description here"></a></p>
  
  <p>Now, I'm not sure what this is doing, but in any case, it doesn't seem to be working anyway.</p>
  
  <p>I also did this:</p>
  
  <p><a href="https://i.stack.imgur.com/nDymY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nDymY.png" alt="enter image description here"></a></p>
  
  <p>How can I include my <code>.storyboard</code> file in my framework without using a separate bundle?</p>