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

bug: Dependency conflict with capacitor-firebase #201

Closed
5 of 11 tasks
vlafranca opened this issue Oct 26, 2024 · 2 comments
Closed
5 of 11 tasks

bug: Dependency conflict with capacitor-firebase #201

vlafranca opened this issue Oct 26, 2024 · 2 comments
Labels

Comments

@vlafranca
Copy link

vlafranca commented Oct 26, 2024

Plugin(s)

  • Barcode Scanning
  • Face Detection
  • Face Mesh Detection
  • Selfie Segmentation
  • Translation

Version

@next

Platform(s)

  • Android
  • iOS
  • Web

Current behavior

Hi,
I just updated the to the latest version of @capacitor-firebase/authentication, @capacitor-firebase/messaging and installed the latest @next version of capacitor-mlkit but I am not able to build my project anymore, here is the pod install error I get. Seems there is a missmatch with the GoogleUtilities/Environment versions:

[error] Analyzing dependencies
        Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`
        [!] CocoaPods could not find compatible versions for pod "GoogleUtilities/Environment":
        In Podfile:
        CapacitorFirebaseAuthentication/Google (from `../../node_modules/@capacitor-firebase/authentication`) was resolved to 6.2.0, which depends on
        FirebaseAuth (~> 11.0) was resolved to 11.4.0, which depends on
        GoogleUtilities/Environment (~> 8.0)
        
        CapacitorMlkitBarcodeScanning (from `../../../node_modules/@capacitor-mlkit/barcode-scanning`) was resolved to 7.0.0-next.0, which depends on
        GoogleMLKit/BarcodeScanning (= 6.0.0) was resolved to 6.0.0, which depends on
        GoogleMLKit/MLKitCore (= 6.0.0) was resolved to 6.0.0, which depends on
        MLKitCommon (~> 11.0.0) was resolved to 11.0.0, which depends on
        GoogleDataTransport (< 10.0, >= 9.4.1) was resolved to 9.4.1, which depends on
        GoogleUtilities/Environment (~> 7.7)
        
        CapacitorMlkitBarcodeScanning (from `../../../node_modules/@capacitor-mlkit/barcode-scanning`) was resolved to 7.0.0-next.0, which depends on
        GoogleMLKit/BarcodeScanning (= 6.0.0) was resolved to 6.0.0, which depends on
        GoogleMLKit/MLKitCore (= 6.0.0) was resolved to 6.0.0, which depends on
        MLKitCommon (~> 11.0.0) was resolved to 11.0.0, which depends on
        GoogleUtilities/UserDefaults (< 8.0, >= 7.13.0) was resolved to 7.13.3, which depends on
        GoogleUtilities/Logger (= 7.13.3) was resolved to 7.13.3, which depends on
        GoogleUtilities/Environment (= 7.13.3)
        
        CocoaPods could not find compatible versions for pod "GoogleUtilities/Logger":
        In Podfile:
        CapacitorMlkitBarcodeScanning (from `../../../node_modules/@capacitor-mlkit/barcode-scanning`) was resolved to 7.0.0-next.0, which depends on
        GoogleMLKit/BarcodeScanning (= 6.0.0) was resolved to 6.0.0, which depends on
        GoogleMLKit/MLKitCore (= 6.0.0) was resolved to 6.0.0, which depends on
        MLKitCommon (~> 11.0.0) was resolved to 11.0.0, which depends on
        GoogleUtilities/UserDefaults (< 8.0, >= 7.13.0) was resolved to 7.13.3, which depends on
        GoogleUtilities/Logger (= 7.13.3)
        
        CapacitorMlkitBarcodeScanning (from `../../../node_modules/@capacitor-mlkit/barcode-scanning`) was resolved to 7.0.0-next.0, which depends on
        GoogleMLKit/BarcodeScanning (= 6.0.0) was resolved to 6.0.0, which depends on
        GoogleMLKit/MLKitCore (= 6.0.0) was resolved to 6.0.0, which depends on
        MLKitCommon (~> 11.0.0) was resolved to 11.0.0, which depends on
        GoogleUtilitiesComponents (~> 1.0) was resolved to 1.1.0, which depends on
        GoogleUtilities/Logger

Thanks in advance for your help

Expected behavior

I am able to pod install my project

Reproduction

https://github.com/vlafranca/capacitor-repro

Steps to reproduce

  1. npm i
  2. npm run build
  3. npx cap sync

Other information

No response

Capacitor doctor

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 6.1.2
@capacitor/core: 6.1.2
@capacitor/android: 6.1.2
@capacitor/ios: 6.1.2

Installed Dependencies:

@capacitor/android: not installed
@capacitor/cli: 6.1.2
@capacitor/core: 6.1.2
@capacitor/ios: 6.1.2

[success] iOS looking great! 👌

Before submitting

  • I have read and followed the bug report guidelines.
  • I have attached links to possibly related issues and discussions.
  • I understand that incomplete issues (e.g. without reproduction) are closed.
@vlafranca vlafranca added bug/fix Something isn't working needs: triage labels Oct 26, 2024
@robingenz
Copy link
Member

I've just published a new version for the MLKit Barcode Scanning plugin:

npm i @capacitor-mlkit/barcode-scanning@7.0.0-next.1

This should fix your issue.

@vlafranca
Copy link
Author

It fixed it! Thank you you're awesome !

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

No branches or pull requests

2 participants