title: cocoapods: The resources are not copied to mainBundle
body: <p><strong>I am struggling with resources.</strong> I want to be able to put a <code>nib</code> in my pod. One of the classes uses this <code>nib</code>.</p>
  
  <p>Here is the podspec:</p>
  
  <pre><code>Pod::Spec.new do |s|
  
    s.name         = "MyCBD_BSManagedDocument"
  
    s.requires_arc = true
    s.osx.platform   = :osx, '10.7'
  
    s.subspec 'MyCBD_BSManagedDocument' do |ss|
      ss.source_files = 'Classes/MyCBD_BSManagedDocument/**/*.{h,m}'
    end
  
    s.subspec 'Auxiliary classes' do |ss|
  
      ss.subspec 'MyCBDLockManager' do |sss|
        sss.source_files = 'Classes/Auxiliary classes/MyCBDLockManager/**/*.{h,m}'
        sss.resource_bundle = {'MyCBDLockManager' =&gt; 'Classes/Auxiliary classes/MyCBDLockManager/MyCBDLockManager.xib'}
      end
  
      ss.subspec 'MyCBDSafeguardManager' do |sss|
        sss.source_files = 'Classes/Auxiliary classes/MyCBDSafeguardManager/**/*.{h,m}'
      end
    end
  
  end
  </code></pre>
  
  <p>Very strangely, in my toy-project to test the pod, it works (I can check the <code>nib</code> is in the <code>mainBundle</code>), but in my real project, the nib is not in the mainBundle, and I have the error</p>
  
  <pre><code>-[MyCBDLockManager loadWindow]: failed to load window nib file 'MyCBDLockManager'.
  </code></pre>
  
  <p>Any advice on how to include resources with cocoa pods?</p>