[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 updateI 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
endThanks!
pod 'Google-Mobile-Ads-SDK', '7.9.1'pod 'Firebase/AdMob'pod 'Google-Mobile-Ads-SDK', '~> 7.9.1'And it update properly. Is this the correct way to go about it?
[!] 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