title: Xcode Unit Testing with Cocoapods
body: <p>I've been banging my head against a wall with this for the last few days but despite multiple Google/SO/Github searches I can't find a resolution to the issues I'm having!</p>
  
  <p>All I'm trying to do is create some unit tests for my app which makes use of Firebase pods.</p>
  
  <p>I'm using Xcode 7.3.1 &amp; Cocoapods 1.0.1. <strong>Update:</strong> Issue remains with Xcode 8.0</p>
  
  <p>With this podfile:</p>
  
  <pre><code>platform :ios, '9.0'
  use_frameworks!
  inhibit_all_warnings!
  
  target 'MyApp' do
      pod 'Firebase'
      pod 'Firebase/Auth'
      pod 'Firebase/Database'
      pod 'Firebase/Storage'
  
      target 'MyAppTests' do
          inherit! :search_paths
      end
  end
  </code></pre>
  
  <p>In my XCTest class I get</p>
  
  <blockquote>
    <p>Missing required module 'Firebase'</p>
  </blockquote>
  
  <p>error at <code>@testable import MyApp</code></p>
  
  <p>Alternatively with this podfile:</p>
  
  <pre><code>platform :ios, '9.0'
  use_frameworks!
  inhibit_all_warnings!
  
  def common_pods
      pod 'SwiftyTimer'
      pod 'Firebase'
      pod 'Firebase/Auth'
      pod 'Firebase/Database'
      pod 'Firebase/Storage'
  end
  
  target 'MyApp' do
      common_pods
  end
  
  target 'MyAppTests' do
      common_pods
  end
  </code></pre>
  
  <p>The tests build but my console is littered with warnings e.g.:</p>
  
  <blockquote>
    <p>Class &lt;-FirebaseClassName-> is implemented in both ...MyApp... and
    ...MyAppTests... One of the two will be used. Which one is undefined</p>
  </blockquote>