title: Xcode and Cocoapods "No such module" error
body: <p>I recently upgraded to Xcode 8 and an existing project to Swift 3. After having a variety of issues with Cocoapods, I decided to start over from scratch. After running <code>pod deintegrate</code> and deleting <code>Podfile</code>, <code>Podfile.lock</code>, and <code>[Project].xcworkspace</code>, I had a blank slate as far as Cocoapods was concerned.</p>
  
  <p>I then took the following actions:</p>
  
  <ol>
  <li><p>Opened a terminal at the project location and ran <code>pod init</code>, then <code>pod install</code> (using the stub Podfile that <code>pod init</code> creates).</p>
  
  <p>This appeared to be successful, but came with the following two warnings:</p></li>
  </ol>
  
  <p><code>[!] The `Xena [Debug]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-Xena/Pods-Xena.debug.xcconfig'. This can lead to problems with the CocoaPods installation
      - Use the `$(inherited)` flag, or
      - Remove the build settings from the target.</code></p>
  
  <p><code>[!] The `Xena [Release]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-Xena/Pods-Xena.release.xcconfig'. This can lead to problems with the CocoaPods installation
      - Use the `$(inherited)` flag, or
      - Remove the build settings from the target.</code></p>
  
  <p>At this point, opening Xcode and building the project gives the "No such module" error, which is entirely expected.</p>
  
  <p>Following the instructions at <a href="https://stackoverflow.com/questions/39569743/errors-after-updating-to-xcode-8-no-such-module-and-target-overrides-the-em">this question</a> solves this problem and rerunning <code>pod install</code> is a success.</p>
  
  <ol start="2">
  <li><p>Closed Xcode, added the modules I'm using to the Podfile (see below), the ran <code>pod install</code> again. According to the terminal output, this is successful.</p></li>
  <li><p>Opened Xcode and built the project. I again receive the "No such module" error, specifically <code>No such module 'ReactiveCocoa'</code></p>
  
  <p><strong>I have confirmed that the same problem occurs with SnapKit, Hue, KMPlaceholderTextView, KeychainSwift, and Siren, depending on the order of the import statements. For some reason, none of the Google modules are affected by this problem.</strong></p></li>
  </ol>
  
  <p>My Podfile:</p>
  
  <pre><code># Uncomment the next line to define a global platform for your project
  # platform :ios, '9.0'
  
  target 'Xena' do
    # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
    use_frameworks!
  
    # Pods for Xena
    pod 'ReactiveCocoa', :git =&gt; 'https://github.com/ReactiveCocoa/ReactiveCocoa.git'
    pod 'SnapKit', '~&gt; 3.0.2'
    pod 'Hue', '~&gt; 2.0.1'
    pod 'KMPlaceholderTextView', '~&gt; 1.3.0'
    pod 'GooglePlacePicker'
    pod 'GooglePlaces'
    pod 'GoogleMaps'
    pod 'KeychainSwift', '~&gt; 7.0'
    pod 'Siren'
  
    target 'XenaTests' do
      inherit! :search_paths
      # Pods for testing
    end
  
    target 'XenaUITests' do
      inherit! :search_paths
      # Pods for testing
    end
  
  end
  </code></pre>