Skip to content

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

@sertal70

Description

@sertal70

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/[email protected]
       @capacitor-community/[email protected]
       @capacitor-mlkit/[email protected]
       @capacitor/[email protected]
       @capacitor/[email protected]
       @capacitor/[email protected]
       @capacitor/[email protected]
       @capacitor/[email protected]
       @capacitor/[email protected]
       @capacitor/[email protected]
       @capacitor/[email protected]
       @capacitor/[email protected]
       @codetrix-studio/[email protected]
       [email protected]
✔ 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions