Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something in Firebase prevents from updating to Firebase/AdMob ~> 8.3.0 #7833

Closed
Idomo opened this issue Apr 3, 2021 · 5 comments · Fixed by #7907
Closed

Something in Firebase prevents from updating to Firebase/AdMob ~> 8.3.0 #7833

Idomo opened this issue Apr 3, 2021 · 5 comments · Fixed by #7907
Assignees
Labels
Milestone

Comments

@Idomo
Copy link

Idomo commented Apr 3, 2021

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 12.4 (12D4e)
  • Firebase SDK version: 7.9.0
  • Installation method: CocoaPods
  • Firebase Components: (Auth, Core, Database, Storage, Crashlytics, Analytics, AdMob)

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

I've got messages that I should upgrade Google AdMob SDK to V8.
I've started with upgrading All Firebase dependencies to the most up-to-date version (7.9.0), worked fine.
Now when running pod outdated I'm getting this:

Google-Mobile-Ads-SDK 7.69.0 -> 7.69.0 (latest version 8.3.0)

When trying to force this to be 8.3.0 I'm getting this:

[!] CocoaPods could not find compatible versions for pod "Firebase/Analytics":
  In Podfile:
    Firebase/Analytics (~> 7.9.0)

None of your spec sources contain a spec satisfying the dependency: `Firebase/Analytics (~> 7.9.0)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

Tried comment out Firebase/Analytics and got the same error on Firebase/Crashlytics and so on about Firebase/Auth etc.

Bottom line:
It seems like Firebase/AdMob newest version doesn't compatible with other Firebase repos.

Relevant Code:

Podfile:

	pod 'Firebase/Core', '~> 7.9.0'
	pod 'Firebase/Storage', '~> 7.9.0'
	pod 'Firebase/Database', '~> 7.9.0'
	pod 'Firebase/Auth', '~> 7.9.0'
	pod 'Firebase/Crashlytics', '~> 7.9.0'
	pod 'Firebase/Analytics', '~> 7.9.0'
	pod 'Firebase/AdMob' #, '~> 7.69.0'
	pod 'SDWebImage', '~> 5.6.1'
	pod 'FirebaseUI/Storage', '~> 9.0.0'
	pod 'GoogleSignIn' #, '~> 5.0.2'
@google-oss-bot
Copy link

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@paulb777
Copy link
Member

paulb777 commented Apr 3, 2021

tl;dr: Replace pod 'Firebase/AdMob' with pod 'Google-Mobile-Ads-SDK'.

Background, see docs at https://firebase.google.com/docs/ios/setup?authuser=0#initialize-firebase. Usage of Firebase/AdMob is no longer recommended since Google-Mobile-Ads-SDK releases at a different cadence than the other Firebase subspecs. It is especially exacerbated right now since Google-Mobile-Ads-SDK recently did a breaking change major release.

The next Firebase major release will either update the Admob subspec to 8.x or completely remove it.

@paulb777 paulb777 added this to the 8.0.0 - M95 milestone Apr 3, 2021
@Idomo
Copy link
Author

Idomo commented Apr 4, 2021

Got it, thanks.

@paulb777
Copy link
Member

paulb777 commented Apr 4, 2021

Great! I'll leave this issue open to track making the Firebase podspec update for the 8.0.0 release.

@paulb777
Copy link
Member

Current plan is to remove the Firebase/AdMob subspec in favor of directly using the Google-Mobile-Ads-SDK podspec.

@firebase firebase locked and limited conversation to collaborators May 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants