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

Pods dependencies conflict with capacitor-mlkit/barcode-scanning plugin #376

Open
sertal70 opened this issue Jun 24, 2024 · 3 comments
Open

Comments

@sertal70
Copy link

After installing the latest release of this plugin, the npx cap update command results in error during the pod install phase, see the following output:

$ npx cap update                                     
✔ Updating Android plugins in 20.59ms
[info] Found 14 Capacitor plugins for android:
       @capacitor-community/facebook-login@5.0.3
       @capacitor-community/sqlite@6.0.0-alpha.1
       @capacitor-mlkit/barcode-scanning@6.1.0
       @capacitor/app@6.0.0
       @capacitor/browser@6.0.0
       @capacitor/geolocation@6.0.0
       @capacitor/haptics@6.0.0
       @capacitor/keyboard@6.0.0
       @capacitor/preferences@6.0.0
       @capacitor/push-notifications@6.0.0
       @capacitor/splash-screen@6.0.0
       @capacitor/status-bar@6.0.0
       @codetrix-studio/capacitor-google-auth@3.4.0-rc.4
       adobe-campaign-classic@0.0.1
✔ update android in 98.62ms
✔ Updating iOS plugins in 5.43ms
✖ Updating iOS native dependencies with pod install - failed!
✖ update ios - failed!
[error] Analyzing dependencies
        [!] CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core":
        In snapshot (Podfile.lock):
        GTMSessionFetcher/Core (< 4.0, = 3.4.1, >= 1.1)
        
        In Podfile:
        CodetrixStudioCapacitorGoogleAuth (from `../../node_modules/@codetrix-studio/capacitor-google-auth`) was
        resolved to 0.0.1, which depends on
        GoogleSignIn (~> 6.2.4) was resolved to 6.2.4, which depends on
        GTMSessionFetcher/Core (< 3.0, >= 1.1)
        
        
        You have either:
        * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
        * changed the constraints of dependency `GTMSessionFetcher/Core` inside your development pod
        `CodetrixStudioCapacitorGoogleAuth`.
        You should run `pod update GTMSessionFetcher/Core` to apply changes you've made.

This is because both CapacitorGoogleAuth and capacitor-mlkit/barcode-scanning depends on GTMSessionFetcher/Core pod. Actually CapacitorGoogleAuth depends on it indirectly, through GoogleSignIn v6.2.4, which is an older release the lastest being v7.1.0.
Could the plugin dependency be updated to GoogleSignIn v7 in order to eliminate the compatibility issue?

If not, do you have any suggestion/workaround I can apply to my project to make these two plugin cohesist?

@rafael-rentman
Copy link

Hey i'm facing the same issue. Did you find any workaround for this? It seems like there is not going to be a response from the devs.

@sertal70
Copy link
Author

@rafael-rentman in the lack of answers I decided to stick capacitor-mlkit/barcode-scanning on v5.4.0 so that shared dependencies didn't clash. Maybe there is a better solution, but I didn't have time to explore for it

@rafael-rentman
Copy link

rafael-rentman commented Oct 18, 2024

@sertal70 I have opened a PR that updates the GoogleSignIn dependency to v7.1.0
Maybe this also works for your setup #403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants