title: iOS: CocoaPods issue with Google Analytics and AdMob
body: <p>Assuming:</p>
  
  <ul>
  <li>I have configured CocoaPods for <strong>Google Analytics</strong>, using <code>pod 'Google/Analytics</code>, following the
  official installation guide:
  <a href="https://developers.google.com/analytics/devguides/collection/ios/v3/?ver=swift" rel="noreferrer">https://developers.google.com/analytics/devguides/collection/ios/v3/?ver=swift</a></li>
  <li>I have configured CocoaPods for <strong>AdMob</strong>, using <code>pod 'Google-Mobile-Ads-SDK', '~&gt; 7.0'</code>, following the
  official installation guide:
  <a href="https://developers.google.com/admob/ios/quick-start#streamlined_using_cocoapods" rel="noreferrer">https://developers.google.com/admob/ios/quick-start#streamlined_using_cocoapods</a></li>
  <li>I generated the <code>GoogleService-Info.plist</code> configuration file, specifying both Analytics and AdMob services, using the button reported here: <a href="https://developers.google.com/analytics/devguides/collection/ios/v3/?ver=swift#get-config" rel="noreferrer">https://developers.google.com/analytics/devguides/collection/ios/v3/?ver=swift#get-config</a></li>
  </ul>
  
  <p>When I start the app I get the warning:</p>
  
  <blockquote>
    <p>You have enabled the AdMob service in Developer Console, but it
    appears as though your Podfile is missing the line: 'pod
    "Google/AdMob" or you may need to run <code>pod update</code> in your project
    directory.</p>
  </blockquote>
  
  <p>Then the app crashes with the error:</p>
  
  <blockquote>
    <p>assertion failed: Error configuring Google services: Optional(Error
    Domain=com.google.greenhouse Code=-106 "Missing expected subspecs."
    UserInfo={NSLocalizedFailureReason=Some subspecs are not pod
    installed. See log for details., NSLocalizedDescription=Missing
    expected subspecs.}): file /myapp/AppDelegate.swift</p>
  </blockquote>
  
  <p>which is thrown by the assert line, of this code the Google Analytics documentation said to add in the <code>AppDelegate.swift</code> file:</p>
  
  <pre><code>// Configure tracker from GoogleService-Info.plist.
  var configureError:NSError?
  GGLContext.sharedInstance().configureWithError(&amp;configureError)
  assert(configureError == nil, "Error configuring Google services: \(configureError)")
  </code></pre>
  
  <p><br><br></p>
  
  <p>I tried to I replace</p>
  
  <p><code>pod 'Google-Mobile-Ads-SDK', '~&gt; 7.0'</code> with <code>pod 'Google/AdMob'</code></p>
  
  <p>The app doesn't crash anymore, but I get the warning:</p>
  
  <blockquote>
    <p>You are currently using version 7.6.0 of the SDK. Please consider
    updating your SDK to the most recent SDK version to get the latest
    features and bug fixes</p>
  </blockquote>
  
  <p><br></p>
  
  <p>This is my full Podfile:</p>
  
  <pre><code>source 'https://github.com/CocoaPods/Specs.git'
  
  platform :ios, '8.0'
  use_frameworks!  # needed when using Swift
  
  
  target 'myProject' do
  
      pod 'Google/Analytics'
      pod 'GoogleIDFASupport'
      pod 'Google-Mobile-Ads-SDK', '~&gt; 7.0'
  
      pod 'Fabric'
      pod 'Crashlytics'
  
      pod 'SQLite.swift', '~&gt; 0.9.2'    
  
  end
  </code></pre>