mohesu / barcode_scanner

A universal barcode and QR code scanner for Flutter based on MLKit. Uses CameraX on Android, AVFoundation on iOS and Apple Vision & AVFoundation on macOS.
Apache License 2.0
37 stars 27 forks source link

CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core" #33

Closed dev4flutter closed 7 months ago

dev4flutter commented 1 year ago
[!] CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core":
  In Podfile:
    firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) was resolved to 4.2.6, which depends on
      Firebase/Auth (= 10.3.0) was resolved to 10.3.0, which depends on
        FirebaseAuth (~> 10.3.0) was resolved to 10.3.0, which depends on
          GTMSessionFetcher/Core (< 4.0, >= 2.1)

    mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`) was resolved to 3.0.0, which depends on
      GoogleMLKit/BarcodeScanning (~> 3.2.0) was resolved to 3.2.0, which depends on
        MLKitBarcodeScanning (~> 2.2.0) was resolved to 2.2.0, which depends on
          MLKitCommon (~> 8.0) was resolved to 8.0.0, which depends on
            GTMSessionFetcher/Core (~> 1.1)

GTMSessionFetcher/Core is not compatible with firebase_auth.

rvndsngwn commented 1 year ago
  1. Create MLKitVision.podspec.json in ios folder taking file from example
  2. Create MLKitCommon.podspec.json in ios folder taking file from example
  3. Inside your Podfile you have to search for target 'Runner' and inside it you have to add the following lines:
      pod 'MLKitVision', :podspec => 'MLKitVision.podspec.json'
      pod 'MLKitCommon', :podspec => 'MLKitCommon.podspec.json'
  4. Run pod install
  5. build the app