title: Can not archive build in xcode with cocoa pods
body: <p>I'm using xCode 6.3.2 and pods of 0.37.2. I have one main target and one test target, pod file looks like :</p>
  
  <pre><code>pod 'AFNetworking', '~&gt; 2.0'
  
  target :'UnitTest' do
   pod 'OCMock',      '~&gt; 3.1'   # OCMock
  end
  </code></pre>
  
  <p>Also i am using config files, that include both "Pods.debug.xcconfig" and "Pods Tests.debug.xcconfig"</p>
  
  <p>while trying to make an archive i get an error:</p>
  
  <pre><code>ld: library not found for -lPods-UnitTest-AFNetworking
  </code></pre>
  
  <p>If I use run with simulator - it works well.
  What can be the reason of such strange issue?</p>