title: Share resource with widget using framework in iOS 8
body: <p>I have an app with Today extension.</p>
  
  <p>I have CoreData related code and preloaded .sqlite database in a Framework.</p>
  
  <p>I need to get URL for that .sqlite resource from both app and widget to save it to  Application Group Container.</p>
  
  <p>Something like this: </p>
  
  <pre><code>let url = NSFileManager.defaultManager().containerURLForSecurityApplicationGroupIdentifier("group.com.ysoftware.Anecdotes")!.URLByAppendingPathComponent("db.sqlite")
      if (!NSFileManager.defaultManager().fileExistsAtPath(url.path!)) {
          let preloadedStorePath = NSBundle.bundleWithIdentifier("company.Framework").pathForResource("db", ofType:"sqlite") //this line 
          NSFileManager.defaultManager().copyItemAtPath(defaultStorePath!, toPath:url.path!, error: nil)
      }
  </code></pre>
  
  <p>Can I do that and how?</p>