title: Swift framework can't get file in another bundle
body: <p>I'm up-skilling on swift. I'm writing a framework that will depend on a file that will not be part of the framework. It will be created by the app that imports the framework.</p>
  
  <p>It works fine when running on the simulator but the live rendering in interface builder craps out because it can't find the file. I've done the same thing previously in Objective-c and I know the solution is that the interface builder is using a different bundle. The solution was to use:</p>
  
  <pre><code>[[NSBundle bundleForClass:[self class]] pathForResource:&lt;fileName&gt; ofType:&lt;fileType&gt;]
  </code></pre>
  
  <p>I've searched online and I believe the equivalent in swift is:</p>
  
  <pre><code>let path:String? = NSBundle(forClass: self.dynamicType).pathForResource(&lt;fileName&gt;, ofType: &lt;fileType&gt;)
  </code></pre>
  
  <p>however it always returns nil inside the live rendering. While:</p>
  
  <pre><code>let path:String? = NSBundle.mainBundle().pathForResource(&lt;filename&gt;, ofType: &lt;fileType&gt;)
  </code></pre>
  
  <p>works fine in the simulator, meaning the file is clearly there and part of the finished app. Anyone have any idea why this might be? is there a setting somewhere i'm missing also?</p>