title: How to load resource in cocoapods resource_bundle
body: <p>I have struggled a lot to how to load resource in cocoapods resource_bundle. </p>
  
  <p>The following is what i put in the <code>.podspecs</code> file.</p>
  
  <pre><code>s.source_files = 'XDCoreLib/Pod/Classes/**/*'
  s.resource_bundles = {
  'XDCoreLib' =&gt; ['XDCoreLib/Pod/Resources/**/*.{png,storyboard}']
  }
  </code></pre>
  
  <p>This is what I am trying to do from the main project.</p>
  
  <pre><code>let bundle = NSBundle(forClass: XDWebViewController.self)
  let image = UIImage(named: "ic_arrow_back", inBundle: bundle, compatibleWithTraitCollection: nil)
  print(image)
  </code></pre>
  
  <p>I did see the picture in the <code>XDCoreLib.bundle</code>, but it return a nil.</p>