Pod won't update to Google-Mobile_ads-SDK >=7.9.0

3,780 views
Skip to first unread message

Chris Ostmo

unread,
Jul 25, 2016, 8:37:28 AM7/25/16
to Google Mobile Ads SDK Developers
In following the example for integrating AdMob/MobileAds, I have the following line of code:

[GADMobileAds configureWithApplicationID:@"MY ID"];


Xcode (7.3.1) throws the error:

No known class method for selector 'configureWithApplicationID:'


Looking at the release notes, I can see that this method was added in version 7.9.0, but when I do this:

pod repo update
pod update


I get this:

Analyzing dependencies
Downloading dependencies
...
Using Google-Mobile-Ads-SDK (7.8.1)
...



When I try to force the newer version, with this in Podfile:

pod 'Firebase/AdMob', '7.9.1'

I get this:

[!] Unable to satisfy the following requirements:

- `Firebase/AdMob (= 7.9.1)` required by `Podfile`



And when I use this:

[!] Unable to satisfy the following requirements:

- `Google-Mobile-Ads-SDK (= 7.9.1)` required by `Podfile`
- `Google-Mobile-Ads-SDK (= 7.8.1)` required by `Firebase/AdMob (3.3.0)`
- `Firebase/AdMob` required by `Podfile`



So, how do I get around this?


Here is my Podfile:

# Uncomment this line to define a global platform for your project
source
'https://github.com/CocoaPods/Specs.git'
platform
:ios, '8.0'

target
'theplates' do
 
# Uncomment this line if you're using Swift or would like to use dynamic frameworks
 
# use_frameworks!

 
# Pods for theplates
  pod
'Google/Analytics'
  pod
'Google/SignIn'
  pod
'Firebase/Core'
  pod
'Firebase/AdMob'
  pod
'Firebase/Crash'
  pod
'Firebase/AppIndexing'
  pod
'Firebase/Auth'

  target
'theplatesTests' do
    inherit
! :search_paths
   
# Pods for testing
 
end

  target
'theplatesUITests' do
    inherit
! :search_paths
   
# Pods for testing
 
end

end


Thanks!

Chris Ostmo

unread,
Jul 25, 2016, 8:40:17 AM7/25/16
to Google Mobile Ads SDK Developers
When I said "And when I use this:" I meant to paste this line:

pod 'Google-Mobile-Ads-SDK', '7.9.1'

Chris Ostmo

unread,
Jul 25, 2016, 8:49:26 AM7/25/16
to Google Mobile Ads SDK Developers
Never mind, I think.

I discovered that I could remove the line:
pod 'Firebase/AdMob'

And replace it with:

pod 'Google-Mobile-Ads-SDK', '~> 7.9.1'


And it update properly. Is this the correct way to go about it?


On Monday, July 25, 2016 at 5:37:28 AM UTC-7, Chris Ostmo wrote:

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Jul 25, 2016, 10:56:41 AM7/25/16
to Google Mobile Ads SDK Developers
Hi Chris,

The Firebase pod spec has not yet been updated to the latest Mobile Ads SDK. So, you can use pod 'Google-Mobile-Ads-SDK', '~> 7.9.1' to get the latest SDK directly. This would not present any issue.

Thanks,
Veer Busani
Mobile Ads SDK Team

kemal önyurt

unread,
Oct 15, 2016, 3:25:27 AM10/15/16
to Google Mobile Ads SDK Developers
when I try to add pod 'Google-Mobile-Ads-SDK', '~> 7.9.1'
it says 

[!] Unable to satisfy the following requirements:


- `Google-Mobile-Ads-SDK (~> 7.9.1)` required by `Podfile`


None of your spec sources contain a spec satisfying the dependency: `Google-Mobile-Ads-SDK (~> 7.9.1)`.


You have either:

 * out-of-date source repos which you can update with `pod repo update`.

 * mistyped the name or version.

 * not added the source repo that hosts the Podspec to your Podfile.


Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.


my full pod file 


target 'nemesis' do

  # Comment this line if you're not using Swift and don't want to use dynamic frameworks

  use_frameworks!

pod 'Firebase'

pod 'Firebase/Database'

pod 'Firebase/Core'

pod 'Google-Mobile-Ads-SDK', '~> 7.9.1'


  # Pods for nemesis


end

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Oct 17, 2016, 11:03:10 AM10/17/16
to Google Mobile Ads SDK Developers
Hi Kemal,

What it means is that your CocoaPod local repo has not been updated to include our latest spec. This is a CocoaPod issue and anything to do with our SDK and you can update your repo as pointed out that log by this command - pod repo update.

Thanks,
Arjun Busani
Mobile Ads SDK Team
Reply all
Reply to author
Forward
0 new messages