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

Ios Pod Error GoogleAppMeasurement Firebase 10 #673

Closed
cnkygmr opened this issue Oct 19, 2022 · 20 comments · Fixed by #674
Closed

Ios Pod Error GoogleAppMeasurement Firebase 10 #673

cnkygmr opened this issue Oct 19, 2022 · 20 comments · Fixed by #674
Labels
bug Something isn't working e1-hours Effort: < 8 hrs p1-high platform-ios iOS applications specifically

Comments

@cnkygmr
Copy link

cnkygmr commented Oct 19, 2022

[!] CocoaPods could not find compatible versions for pod "GoogleAppMeasurement":
  In Podfile:
    firebase_analytics (from `.symlinks/plugins/firebase_analytics/ios`) was resolved to 10.0.1, which depends on
      Firebase/Analytics (= 10.0.0) was resolved to 10.0.0, which depends on
        Firebase/Core (= 10.0.0) was resolved to 10.0.0, which depends on
          FirebaseAnalytics (~> 10.0.0) was resolved to 10.0.0, which depends on
            FirebaseAnalytics/AdIdSupport (= 10.0.0) was resolved to 10.0.0, which depends on
              GoogleAppMeasurement (= 10.0.0)

    google_mobile_ads (from `.symlinks/plugins/google_mobile_ads/ios`) was resolved to 0.0.1, which depends on
      Google-Mobile-Ads-SDK (= 9.10.0) was resolved to 9.10.0, which depends on
        GoogleAppMeasurement (< 10.0, >= 7.0)

@cnkygmr cnkygmr changed the title Ios Build Error GoogleAppMeasurement Firebase 10 Ios Pod Error GoogleAppMeasurement Firebase 10 Oct 19, 2022
@huycozy huycozy added the in triage Issue currently being evaluated label Oct 19, 2022
@huycozy
Copy link
Collaborator

huycozy commented Oct 19, 2022

Hi @cnkygmr
Is this issue reproducible locally? If so, please try running example code and share the output of flutter run -v so that we may verify the issue.

@huycozy huycozy added the feedback required Further information is requested label Oct 19, 2022
@JulienDev
Copy link

JulienDev commented Oct 19, 2022

Same error after updating Firebase libraries. This is my current libraries configuration :

  firebase_core: ^2.0.0
  firebase_crashlytics: ^3.0.1
  firebase_analytics: ^10.0.1
  firebase_remote_config: ^3.0.1
  google_mobile_ads: ^2.1.0

and the error associated :

[!] CocoaPods could not find compatible versions for pod "GoogleAppMeasurement":
In Podfile:
firebase_analytics (from .symlinks/plugins/firebase_analytics/ios) was resolved to 10.0.1, which depends on
Firebase/Analytics (= 10.0.0) was resolved to 10.0.0, which depends on
Firebase/Core (= 10.0.0) was resolved to 10.0.0, which depends on
FirebaseAnalytics (~> 10.0.0) was resolved to 10.0.0, which depends on
FirebaseAnalytics/AdIdSupport (= 10.0.0) was resolved to 10.0.0, which depends on
GoogleAppMeasurement (= 10.0.0)

google_mobile_ads (from .symlinks/plugins/google_mobile_ads/ios) was resolved to 0.0.1, which depends on
Google-Mobile-Ads-SDK (= 9.10.0) was resolved to 9.10.0, which depends on GoogleAppMeasurement (< 10.0, >= 7.0)

@ragotrebor-ned
Copy link

Hi, same error here.

I found is an old closed issue.
#594

@Tom3652
Copy link

Tom3652 commented Oct 20, 2022

Same error after updating to the latest version of Firebase, the app can't be built on iOS.
GoogleAppMeasurement should be updated here in my understanding to be able to use firebase and google mobile ads together

@Ali1Ammar
Copy link

Ali1Ammar commented Oct 20, 2022

using @jslattery26 fork will solve the problems temporarily

  google_mobile_ads: 
    git: 
      url: https://github.com/jslattery26/googleads-mobile-flutter
      path: packages/google_mobile_ads

@large

This comment was marked as off-topic.

@huycozy
Copy link
Collaborator

huycozy commented Oct 21, 2022

Hi everyone facing this issue,
This issue seems to have been fixed on version 2.0.0 of the plugin onward as mentioned at #594 (comment). So, please try use the latest version and check if the issue still reproduces.

@ismailcaakir
Copy link

I also had this error. Since I couldn't find a solution, I found a workaround by rolling back my Firebase versions as follows. At least I can get builds.

firebase_core: ^1.21.0
firebase_auth: ^3.6.4
firebase_remote_config: ^2.0.15
firebase_analytics: ^9.3.2
google_mobile_ads: ^2.0.1

@derjohng
Copy link

same issue.
google_mobile_ads: ^2.1.0
firebase_core: ^2.1.0
firebase_crashlytics: ^3.0.2
firebase_analytics: ^10.0.2

@Ali1Ammar
Copy link

Ali1Ammar commented Oct 21, 2022

Hi everyone facing this issue, This issue seems to have been fixed on version 2.0.0 of the plugin onward as mentioned at #594 (comment). So, please try use the latest version and check if the issue still reproduces.

the error still exist in version 2.1.0 when using with the latest firebase version

the only fix for now is use old firebase versions or the fork above

@Ali1Ammar
Copy link

the plugin that i use

  firebase_analytics: ^10.0.0
  firebase_remote_config: ^3.0.1
  firebase_messaging: ^14.0.1
  firebase_core: ^2.0.0
  firebase_crashlytics: ^3.0.1
  firebase_storage: ^11.0.1
  firebase_auth: ^4.0.1
  firebase_database: ^10.0.1
  firebase_in_app_messaging: ^0.7.0+1

  google_mobile_ads: ^2.1.0

error:

mac@alimac ios % pod install
Analyzing dependencies
firebase_analytics: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
Run script to upload symbols already exists.
firebase_crashlytics: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_database: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_in_app_messaging: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_remote_config: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_storage: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "GoogleAppMeasurement":
  In Podfile:
    firebase_analytics (from `.symlinks/plugins/firebase_analytics/ios`) was resolved to 10.0.1, which depends on
      Firebase/Analytics (= 10.0.0) was resolved to 10.0.0, which depends on
        Firebase/Core (= 10.0.0) was resolved to 10.0.0, which depends on
          FirebaseAnalytics (~> 10.0.0) was resolved to 10.0.0, which depends on
            FirebaseAnalytics/AdIdSupport (= 10.0.0) was resolved to 10.0.0, which depends on
              GoogleAppMeasurement (= 10.0.0)

    google_mobile_ads (from `.symlinks/plugins/google_mobile_ads/ios`) was resolved to 0.0.1, which depends on
      Google-Mobile-Ads-SDK (= 9.10.0) was resolved to 9.10.0, which depends on
        GoogleAppMeasurement (< 10.0, >= 7.0)
mac@alimac ios % 

i also try using
pod repo update
pod update
removeing Podfile.lock
flutter clean

@Ali1Ammar

This comment was marked as off-topic.

@huycozy
Copy link
Collaborator

huycozy commented Oct 24, 2022

I also can reproduce this issue with firebase_analytics: ^10.0.2 and google_mobile_ads: ^2.1.0.

Logs
[!] CocoaPods could not find compatible versions for pod "GoogleAppMeasurement":
  In snapshot (Podfile.lock):
    GoogleAppMeasurement (< 10.0, = 9.6.0, >= 7.0)

  In Podfile:
    firebase_analytics (from `.symlinks/plugins/firebase_analytics/ios`) was resolved to 10.0.2, which depends on
      Firebase/Analytics (= 10.0.0) was resolved to 10.0.0, which depends on
        Firebase/Core (= 10.0.0) was resolved to 10.0.0, which depends on
          FirebaseAnalytics (~> 10.0.0) was resolved to 10.0.0, which depends on
            FirebaseAnalytics/AdIdSupport (= 10.0.0) was resolved to 10.0.0, which depends on
              GoogleAppMeasurement (= 10.0.0)

    google_mobile_ads (from `.symlinks/plugins/google_mobile_ads/ios`) was resolved to 0.0.1, which depends on
      Google-Mobile-Ads-SDK (= 9.10.0) was resolved to 9.10.0, which depends on
        GoogleAppMeasurement (< 10.0, >= 7.0)

/cc: @jjliu15

@huycozy huycozy added bug Something isn't working p1-high e1-hours Effort: < 8 hrs platform-ios iOS applications specifically and removed feedback required Further information is requested in triage Issue currently being evaluated labels Oct 24, 2022
@leonschwanitz
Copy link

Same issue here.

@FisherWL
Copy link

same issue.

@guiguito
Copy link

same issue for me

@therjtkumar
Copy link

same issue for me with latest firebase and google_mobile_ads version.

dependencies
firebase_core: ^2.1.1
firebase_messaging: ^14.0.3
firebase_analytics: ^10.0.3
firebase_dynamic_links: ^5.0.3
google_mobile_ads: ^2.1.0

Error:
[!] CocoaPods could not find compatible versions for pod "GoogleAppMeasurement":
In Podfile:
firebase_analytics (from .symlinks/plugins/firebase_analytics/ios) was resolved to 10.0.3, which depends on
Firebase/Analytics (= 10.0.0) was resolved to 10.0.0, which depends on
Firebase/Core (= 10.0.0) was resolved to 10.0.0, which depends on
FirebaseAnalytics (~> 10.0.0) was resolved to 10.0.0, which depends on
FirebaseAnalytics/AdIdSupport (= 10.0.0) was resolved to 10.0.0, which depends on
GoogleAppMeasurement (= 10.0.0)

    google_mobile_ads (from `.symlinks/plugins/google_mobile_ads/ios`) was resolved to 0.0.1, which depends on
      Google-Mobile-Ads-SDK (= 9.10.0) was resolved to 9.10.0, which depends on
        GoogleAppMeasurement (< 10.0, >= 7.0)

@under3415
Copy link

Yay, this is fixed in google_mobile_ads: ^2.2.0

@j796160836
Copy link

I comment this line in Podfile and it works for me.

# platform :ios, '10.0'

@CoryLWright
Copy link

Just had this issue today while using

google_mobile_ads: ^3.0.0.
firebase_core: ^2.15.0
firebase_analytics: ^10.4.4

Couldn't get it to work at all until I changed to google_mobile_ads: ^2.4.0 in my subspec.yaml file. Then I ran

flutter pub get
pod repo update
pod install
flutter build iOS
flutter run

Now all is good. Mac M2 chip. Hope this helps someone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working e1-hours Effort: < 8 hrs p1-high platform-ios iOS applications specifically
Projects
None yet
Development

Successfully merging a pull request may close this issue.