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

[firebase_core]: 'pod update' cannot be done when 'firebase core' is updated to the latest version #12742

Closed
1 task done
ynmain opened this issue May 3, 2024 · 5 comments
Closed
1 task done
Labels
Needs Attention This issue needs maintainer attention. platform: ios Issues / PRs which are specifically for iOS. plugin: core resolution: invalid This doesn't seem right and might not belong here. type: bug Something isn't working

Comments

@ynmain
Copy link

ynmain commented May 3, 2024

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

No response

Which platforms are affected?

No response

Description

When I do 'pod update' I get the following error

firebase_storage: Using Firebase SDK version '10.24.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core":
  In Podfile:
    firebase_storage (from `.symlinks/plugins/firebase_storage/ios`) was resolved to 11.7.4, which depends on
      Firebase/Storage (= 10.24.0) was resolved to 10.24.0, which depends on
        FirebaseStorage (~> 10.24.0) was resolved to 10.24.0, which depends on
          GTMSessionFetcher/Core (< 4.0, >= 2.1)

    google_mlkit_text_recognition (from `.symlinks/plugins/google_mlkit_text_recognition/ios`) was resolved to 0.6.0, which depends on
      GoogleMLKit/TextRecognition (~> 4.0.0) was resolved to 4.0.0, which depends on
        MLKitTextRecognition (~> 2.0.0) was resolved to 2.0.0, which depends on
          MLKitVision (~> 5.0) was resolved to 5.0.0, which depends on
            GTMSessionFetcher/Core (< 3.0, >= 1.1)

    google_sign_in_ios (from `.symlinks/plugins/google_sign_in_ios/darwin`) was resolved to 0.0.1, which depends on
      GTMSessionFetcher (>= 3.4.0) was resolved to 3.4.1, which depends on
        GTMSessionFetcher/Full (= 3.4.1) was resolved to 3.4.1, which depends on
          GTMSessionFetcher/Core (= 3.4.1)

    google_sign_in_ios (from `.symlinks/plugins/google_sign_in_ios/darwin`) was resolved to 0.0.1, which depends on
      GoogleSignIn (~> 7.1) was resolved to 7.1.0, which depends on
        GTMAppAuth (< 5.0, >= 4.1.1) was resolved to 4.1.1, which depends on
          GTMSessionFetcher/Core (< 4.0, >= 3.3)

    google_sign_in_ios (from `.symlinks/plugins/google_sign_in_ios/darwin`) was resolved to 0.0.1, which depends on
      GoogleSignIn (~> 7.1) was resolved to 7.1.0, which depends on
        GTMSessionFetcher/Core (~> 3.3)

CocoaPods could not find compatible versions for pod "MLKitVision":
  In Podfile:
    google_mlkit_commons (from `.symlinks/plugins/google_mlkit_commons/ios`) was resolved to 0.3.0, which depends on
      MLKitVision

    google_mlkit_text_recognition (from `.symlinks/plugins/google_mlkit_text_recognition/ios`) was resolved to 0.6.0, which depends on
      GoogleMLKit/TextRecognition (~> 4.0.0) was resolved to 4.0.0, which depends on
        MLKitTextRecognition (~> 2.0.0) was resolved to 2.0.0, which depends on
          MLKitVision (~> 5.0)

GTMSessionFetcher/Core dependency versions appear to be inconsistent

I would like you to address this issue

Reproducing the issue

Make pubspec like below

  google_sign_in: 6.2.1
  firebase_core: 2.30.1
  firebase_auth: 4.19.4
  firebase_analytics: 10.10.4
  firebase_storage: 11.7.4
  cloud_firestore: 4.17.2
  firebase_remote_config: 4.4.4
  firebase_ui_auth: 1.14.0
  firebase_ui_firestore: 1.6.3
  google_mobile_ads: 5.0.0
  firebase_ui_oauth_apple: 1.2.20
  firebase_ui_oauth_google: 1.3.2
  sign_in_with_apple: 6.1.0

Firebase Core version

2.30.1

Flutter Version

3.19.3

Relevant Log Output

No response

Flutter dependencies

Expand Flutter dependencies snippet
Replace this line with the contents of your `flutter pub deps -- --style=compact`.

Additional context and comments

I tried everything clean etc.

@ynmain ynmain added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels May 3, 2024
@ynmain ynmain changed the title [PLUGIN_NAME_HERE]: <YOUR TITLE HERE> 'pod update' cannot be done when 'firebase core' is updated to the latest version May 3, 2024
@ynmain ynmain changed the title 'pod update' cannot be done when 'firebase core' is updated to the latest version [firebase_core]: 'pod update' cannot be done when 'firebase core' is updated to the latest version May 3, 2024
@TarekkMA
Copy link
Contributor

TarekkMA commented May 3, 2024

Hi @ynmain, Can you try running this command and try again, let me know if that solved your issue?

cd ios
rm -rf Pods && rm Podfile.lock
pod repo update
cd ..
flutter clean

@TarekkMA TarekkMA added plugin: core platform: ios Issues / PRs which are specifically for iOS. blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels May 3, 2024
@ynmain
Copy link
Author

ynmain commented May 3, 2024

@TarekkMA
Unfortunately, I've tried everything including clean. Of course I also tried this procedure. No solution has been reached.

 ✗ pod repo update
Updating spec repo `cocoapods`
  $ /usr/bin/git -C xxxx/.cocoapods/repos/cocoapods fetch origin --progress
  remote: Enumerating objects: 371143, done.        
  remote: Counting objects: 100% (84181/84181), done.        
  remote: Compressing objects: 100% (3802/3802), done.        
  remote: Total 371143 (delta 80349), reused 83948 (delta 80246), pack-reused 286962        
  Receiving objects: 100% (371143/371143), 48.35 MiB | 7.11 MiB/s, done.
  Resolving deltas: 100% (258160/258160), completed with 9983 local objects.
  From https://github.com/CocoaPods/Specs
     c32ba892eb3f..ce8dba752a35  master     -> origin/master
  $ /usr/bin/git -xxxxxx/repos/cocoapods rev-parse --abbrev-ref HEAD
  master
  $ /usr/bin/git -C xxxxxx/.cocoapods/repos/cocoapods reset --hard origin/master
  Updating files: 100% (38235/38235), done.
  HEAD is now at ce8dba752a35 [Add] DriveKitTripSimulator 2.0.2
Updating spec repo `trunk`
➜  ios git:(fixPush) ✗ flutter clean
Changing current working directory to: /xxxx/Documents/tukuttemita/GitHub/limitter_flutter
Cleaning Xcode workspace...                                         3.4s
Deleting build...                                                  489ms
Deleting .dart_tool...                                              77ms
Deleting Generated.xcconfig...                                       0ms
Deleting flutter_export_environment.sh...                            0ms
Deleting Flutter.podspec...                                          0ms
Deleting .flutter-plugins-dependencies...                            0ms
Deleting .flutter-plugins...                                         0ms

➜  ios git:(fixPush) ✗ pod install
Analyzing dependencies
Pre-downloading: `FirebaseFirestore` from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `10.24.0`
cloud_firestore: Using Firebase SDK version '10.24.0' defined in 'firebase_core'
firebase_analytics: Using Firebase SDK version '10.24.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '10.24.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.24.0' defined in 'firebase_core'
firebase_dynamic_links: Using Firebase SDK version '10.24.0' defined in 'firebase_core'
firebase_remote_config: Using Firebase SDK version '10.24.0' defined in 'firebase_core'
firebase_storage: Using Firebase SDK version '10.24.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core":
  In Podfile:
    firebase_storage (from `.symlinks/plugins/firebase_storage/ios`) was resolved to 11.7.4, which depends on
      Firebase/Storage (= 10.24.0) was resolved to 10.24.0, which depends on
        FirebaseStorage (~> 10.24.0) was resolved to 10.24.0, which depends on
          GTMSessionFetcher/Core (< 4.0, >= 2.1)

    google_mlkit_text_recognition (from `.symlinks/plugins/google_mlkit_text_recognition/ios`) was resolved to 0.6.0, which depends on
      GoogleMLKit/TextRecognition (~> 4.0.0) was resolved to 4.0.0, which depends on
        MLKitTextRecognition (~> 2.0.0) was resolved to 2.0.0, which depends on
          MLKitVision (~> 5.0) was resolved to 5.0.0, which depends on
            GTMSessionFetcher/Core (< 3.0, >= 1.1)

    google_sign_in_ios (from `.symlinks/plugins/google_sign_in_ios/darwin`) was resolved to 0.0.1, which depends on
      GTMSessionFetcher (>= 3.4.0) was resolved to 3.4.1, which depends on
        GTMSessionFetcher/Full (= 3.4.1) was resolved to 3.4.1, which depends on
          GTMSessionFetcher/Core (= 3.4.1)

    google_sign_in_ios (from `.symlinks/plugins/google_sign_in_ios/darwin`) was resolved to 0.0.1, which depends on
      GoogleSignIn (~> 7.1) was resolved to 7.1.0, which depends on
        GTMAppAuth (< 5.0, >= 4.1.1) was resolved to 4.1.1, which depends on
          GTMSessionFetcher/Core (< 4.0, >= 3.3)

    google_sign_in_ios (from `.symlinks/plugins/google_sign_in_ios/darwin`) was resolved to 0.0.1, which depends on
      GoogleSignIn (~> 7.1) was resolved to 7.1.0, which depends on
        GTMSessionFetcher/Core (~> 3.3)

CocoaPods could not find compatible versions for pod "MLKitVision":
  In Podfile:
    google_mlkit_commons (from `.symlinks/plugins/google_mlkit_commons/ios`) was resolved to 0.3.0, which depends on
      MLKitVision

    google_mlkit_text_recognition (from `.symlinks/plugins/google_mlkit_text_recognition/ios`) was resolved to 0.6.0, which depends on
      GoogleMLKit/TextRecognition (~> 4.0.0) was resolved to 4.0.0, which depends on
        MLKitTextRecognition (~> 2.0.0) was resolved to 2.0.0, which depends on
          MLKitVision (~> 5.0)

@google-oss-bot google-oss-bot added Needs Attention This issue needs maintainer attention. and removed blocked: customer-response Waiting for customer response, e.g. more information was requested. labels May 3, 2024
@russellwheatley
Copy link
Member

@ynmain - your problem is here:

    google_mlkit_text_recognition (from `.symlinks/plugins/google_mlkit_text_recognition/ios`) was resolved to 0.6.0, which depends on
      GoogleMLKit/TextRecognition (~> 4.0.0) was resolved to 4.0.0, which depends on
        MLKitTextRecognition (~> 2.0.0) was resolved to 2.0.0, which depends on
          MLKitVision (~> 5.0) was resolved to 5.0.0, which depends on
            GTMSessionFetcher/Core (< 3.0, >= 1.1)

    google_sign_in_ios (from `.symlinks/plugins/google_sign_in_ios/darwin`) was resolved to 0.0.1, which depends on
      GTMSessionFetcher (>= 3.4.0) was resolved to 3.4.1, which depends on
        GTMSessionFetcher/Full (= 3.4.1) was resolved to 3.4.1, which depends on
          GTMSessionFetcher/Core (= 3.4.1)

google_sign_in_ios depends on 3.4.1 whilst the transitive dependency on MLKitVision via GoogleMLKit/TextRecognition does not allow a version of GTMSessionFetcher/Core greater then or equal to 3.0. I'd open an issue on google_sign_in_ios repo and ask them to loosen the version constraint.

@russellwheatley russellwheatley added resolution: invalid This doesn't seem right and might not belong here. Needs Attention This issue needs maintainer attention. and removed Needs Attention This issue needs maintainer attention. labels May 3, 2024
@ynmain
Copy link
Author

ynmain commented May 3, 2024

Thanks.
Hmm. I was very troubled. You cannot submit issues to this repository 🙁
https://github.com/flutter/packages/tree/main/packages/google_sign_in/google_sign_in_ios

@stuartmorgan
Copy link

google_sign_in_ios depends on 3.4.1 whilst the transitive dependency on MLKitVision via GoogleMLKit/TextRecognition does not allow a version of GTMSessionFetcher/Core greater then or equal to 3.0. I'd open an issue on google_sign_in_ios repo and ask them to loosen the version constraint.

We will not be relaxing the version constraints to allow versions of GTMSessionFetcher that do not have privacy manifests. Requiring versions of dependencies that are fully compliant with App Store policies was a deliberate choice, as resolver errors are much clearer than the rejection errors from the App Store validator when a transitive dependency is missing a required manifest.

@firebase firebase locked and limited conversation to collaborators Jun 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs Attention This issue needs maintainer attention. platform: ios Issues / PRs which are specifically for iOS. plugin: core resolution: invalid This doesn't seem right and might not belong here. type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants