juliansteenbakker / mobile_scanner

A universal scanner for Flutter based on MLKit. Uses CameraX on Android and AVFoundation on iOS.
BSD 3-Clause "New" or "Revised" License
886 stars 512 forks source link

failed build podfile ios : CocoaPods could not find compatible versions for pod "GoogleDataTransport" #1182

Closed ferisetyo1 closed 1 month ago

ferisetyo1 commented 1 month ago

pub dev dependecies : firebase_analytics: ^11.2.0 firebase_core: ^3.2.0 firebase_messaging: ^15.0.3 firebase_crashlytics: ^4.0.3 firebase_in_app_messaging: ^0.8.0+3 mobile_scanner: ^5.2.3


Analyzing dependencies
firebase_analytics: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
firebase_in_app_messaging: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "GoogleDataTransport":
  In Podfile:
    firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`) was resolved to 15.1.0, which depends on
      Firebase/Messaging (= 11.0.0) was resolved to 11.0.0, which depends on
        FirebaseMessaging (~> 11.0.0) was resolved to 11.0.0, which depends on
          GoogleDataTransport (~> 10.0)

    mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`) was resolved to 5.2.3, 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)
Dkkathiriya commented 1 month ago

I have also same error

cloud_firestore: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "GoogleDataTransport":
  In Podfile:
    firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`) was resolved to 15.0.0, which depends on
      Firebase/Messaging (= 11.0.0) was resolved to 11.0.0, which depends on
        FirebaseMessaging (~> 11.0.0) was resolved to 11.0.0, which depends on
          GoogleDataTransport (~> 10.0)

    mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`) was resolved to 5.2.3, 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)
Mortando commented 1 month ago

Same .... GoogleDataTransport must be > 10.0

Temporary solution is to downgrade firebase_core from ^3 to ^2.32.0 and match all other firebase dependencies...

DevUser611 commented 1 month ago

mostly same issue but other tool "GoogleUtilities/UserDefaults (= 8.0.2, ~> 8.0)"

`

[!] CocoaPods could not find compatible versions for pod "GoogleUtilities/UserDefaults": In snapshot (Podfile.lock): GoogleUtilities/UserDefaults (= 8.0.2, ~> 8.0)

  In Podfile:
    firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`) was resolved to 15.1.2, which depends on
      Firebase/Messaging (= 11.0.0) was resolved to 11.0.0, which depends on
        FirebaseMessaging (~> 11.0.0) was resolved to 11.0.0, which depends on
          GoogleUtilities/UserDefaults (~> 8.0)

    mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`) was resolved to 5.2.3, which depends on
      GoogleMLKit/BarcodeScanning (~> 6.0.0) was resolved to 6.0.0, which depends on
        MLKitBarcodeScanning (~> 5.0.0) was resolved to 5.0.0, which depends on
          MLKitCommon (~> 11.0) was resolved to 11.0.0, which depends on
            GoogleUtilities/UserDefaults (< 8.0, >= 7.13.0)

`

tegaologe commented 1 month ago

I have the exact same problem.. is there any solution?

lukasnevosad commented 1 month ago

Including mine since it goes one step deeper in the stack:

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

    mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`) was resolved to 5.2.3, 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
              nanopb (< 2.30911.0, >= 2.30908.0)
adrolter commented 1 month ago

+1

pierfani commented 1 month ago

[!] CocoaPods could not find compatible versions for pod "GoogleUtilities/UserDefaults": In Podfile: firebase_app_check (from.symlinks/plugins/firebase_app_check/ios`) was resolved to 0.3.1-2, which depends on FirebaseAppCheck (~> 11.0.0) was resolved to 11.0.0, which depends on GoogleUtilities/UserDefaults (~> 8.0)

mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`) was resolved to 5.2.3, 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)`
anchao-lu commented 1 month ago

+1

Lazizbek97 commented 1 month ago

any news?

[!] CocoaPods could not find compatible versions for pod "GoogleUtilities/Environment": In Podfile: firebase_remote_config (from.symlinks/plugins/firebase_remote_config/ios`) was resolved to 5.1.2, which depends on Firebase/RemoteConfig (= 11.0.0) was resolved to 11.0.0, which depends on FirebaseRemoteConfig (~> 11.0.0) was resolved to 11.0.0, which depends on GoogleUtilities/Environment (~> 8.0)

mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`) was resolved to 5.2.3, 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)`
Mortando commented 1 month ago

ML Kit must be first updated, issue tracker: https://issuetracker.google.com/issues/362452861

It's just been reassigned internally at google yesterday...

Downgrade firebase_core to 2.32.0 and the rest matching ... this might take a while

LipuBeingeniere commented 1 month ago

+1

lukasnevosad commented 1 month ago

@Mortando Thank you for linking the issue, I confirm downgrading works.

The correct Flutter dependency is

firebase_core: 3.3.0

(Note the missing ^)

Then the usual and I was able to build:

rm podfile.lock
pod install --repo-update
anchao-lu commented 1 month ago

Firebase has problems in Xcode16 iOS18. So we have to upgrade firebase.

navaronbracke commented 1 month ago

This is a duplicate of https://github.com/juliansteenbakker/mobile_scanner/issues/1165

Unfortunately, MLKit also depends on GoogleDataTransport, and there is no new release for MLKit just yet.

pvc97 commented 1 month ago

Same issue

myFLO-Developer1 commented 1 month ago

+1

bluegene37 commented 1 month ago

+1

kalyujniy commented 1 month ago

+1

StatTark commented 1 month ago

+1

malte1989 commented 1 month ago

With MacOs Sequoia 15 I can not downgrade. It won't work for iOS. Google is currently not seeming to update the GoogleMLKit/BarcodeScanning.

Is there any possibility so switch to different scanning library (for iOS)?

adrolter commented 1 month ago

@malte1989 See this comment

malte1989 commented 1 month ago

It is fixed: https://pub.dev/packages/mobile_scanner in version 6.0.0

flutter clean && flutter pub get pod repo update flutter build ipa

HarshitaRawat1 commented 4 weeks ago

Change dependencies to these versions:

firebase_messaging: ^14.9.2 firebase_core: ^2.31.0 mobile_scanner: ^5.2.3

It will work.