flutter-ml / google_ml_kit_flutter

A flutter plugin that implements Google's standalone ML Kit
MIT License
907 stars 709 forks source link

iOS: Firebase latest packages incompatible with flutter ml packages #643

Open jimmyff opened 1 month ago

jimmyff commented 1 month ago

I cannot satisfy the dependencies to get my ios building using the latest versions of ML & Firebase packages:


  google_mlkit_face_detection: ^0.11.0
  google_mlkit_text_recognition: ^0.13.0

  firebase_core: ^3.0.0
  cloud_firestore: ^5.0.0
  firebase_app_check: ^0.3.0
  firebase_auth: ^5.0.0
  firebase_storage: ^12.0.0
  firebase_analytics: ^11.0.0
  firebase_remote_config: ^5.0.0
  firebase_messaging: ^15.0.0
  firebase_crashlytics: ^4.0.0

Podfile

# Uncomment this line to define a global platform for your project
platform :ios, '13.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

# See Firebase iOS SDK here: https://pub.dev/packages/firebase_core/changelog
$FirebaseSDKVersion = '10.27.0'

# (google_mlkit_face_detection for Face detection)
$iOSVersion = '13.0'  # or newer version

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}
...

Pod install:

jimmyff@jimmyff-mbp14 ios % arch -x86_64 pod install --repo-update  
Updating local specs repositories
Analyzing dependencies
cloud_firestore: Using user specified Firebase SDK version '10.27.0'
firebase_analytics: Using user specified Firebase SDK version '10.27.0'
firebase_app_check: Using user specified Firebase SDK version '10.27.0'
firebase_auth: Using user specified Firebase SDK version '10.27.0'
firebase_core: Using user specified Firebase SDK version '10.27.0'
Ignoring ffi-1.16.3 because its extensions are not built. Try: gem pristine ffi --version 1.16.3
Run script to upload symbols already exists.
firebase_crashlytics: Using user specified Firebase SDK version '10.27.0'
firebase_messaging: Using user specified Firebase SDK version '10.27.0'
firebase_remote_config: Using user specified Firebase SDK version '10.27.0'
firebase_storage: Using user specified Firebase SDK version '10.27.0'
[!] CocoaPods could not find compatible versions for pod "FirebaseAppCheck":
  In snapshot (Podfile.lock):
    FirebaseAppCheck (= 10.18.0, ~> 10.18.0-beta)

  In Podfile:
    firebase_app_check (from `.symlinks/plugins/firebase_app_check/ios`) was resolved to 0.3.0, which depends on
      FirebaseAppCheck (~> 10.27.0-beta)

You have either:
 * changed the constraints of dependency `FirebaseAppCheck` inside your development pod `firebase_app_check`.
   You should run `pod update FirebaseAppCheck` to apply changes you've made.
jimmyff@jimmyff-mbp14 ios % arch -x86_64 pod update FirebaseAppCheck
Updating local specs repositories
Analyzing dependencies
cloud_firestore: Using user specified Firebase SDK version '10.27.0'
firebase_analytics: Using user specified Firebase SDK version '10.27.0'
firebase_app_check: Using user specified Firebase SDK version '10.27.0'
firebase_auth: Using user specified Firebase SDK version '10.27.0'
firebase_core: Using user specified Firebase SDK version '10.27.0'
Ignoring ffi-1.16.3 because its extensions are not built. Try: gem pristine ffi --version 1.16.3
Run script to upload symbols already exists.
firebase_crashlytics: Using user specified Firebase SDK version '10.27.0'
firebase_messaging: Using user specified Firebase SDK version '10.27.0'
firebase_remote_config: Using user specified Firebase SDK version '10.27.0'
firebase_storage: Using user specified Firebase SDK version '10.27.0'
[!] CocoaPods could not find compatible versions for pod "GoogleUtilities/UserDefaults":
  In snapshot (Podfile.lock):
    GoogleUtilities/UserDefaults (= 7.12.0, ~> 7.0, ~> 7.8)

  In Podfile:
    firebase_app_check (from `.symlinks/plugins/firebase_app_check/ios`) was resolved to 0.3.0, which depends on
      FirebaseAppCheck (~> 10.27.0-beta) was resolved to 10.27.0, which depends on
        GoogleUtilities/UserDefaults (~> 7.13)

You have either:
 * changed the constraints of dependency `GoogleUtilities/UserDefaults` inside your development pod `firebase_app_check`.
   You should run `pod update GoogleUtilities/UserDefaults` to apply changes you've made.
jimmyff@jimmyff-mbp14 ios % arch -x86_64 pod update GoogleUtilities/UserDefaults
Updating local specs repositories
Analyzing dependencies
cloud_firestore: Using user specified Firebase SDK version '10.27.0'
firebase_analytics: Using user specified Firebase SDK version '10.27.0'
firebase_app_check: Using user specified Firebase SDK version '10.27.0'
firebase_auth: Using user specified Firebase SDK version '10.27.0'
firebase_core: Using user specified Firebase SDK version '10.27.0'
Ignoring ffi-1.16.3 because its extensions are not built. Try: gem pristine ffi --version 1.16.3
Run script to upload symbols already exists.
firebase_crashlytics: Using user specified Firebase SDK version '10.27.0'
firebase_messaging: Using user specified Firebase SDK version '10.27.0'
firebase_remote_config: Using user specified Firebase SDK version '10.27.0'
firebase_storage: Using user specified Firebase SDK version '10.27.0'
[!] CocoaPods could not find compatible versions for pod "FirebaseAppCheck":
  In snapshot (Podfile.lock):
    FirebaseAppCheck (= 10.18.0, ~> 10.18.0-beta)

  In Podfile:
    firebase_app_check (from `.symlinks/plugins/firebase_app_check/ios`) was resolved to 0.3.0, which depends on
      FirebaseAppCheck (~> 10.27.0-beta)

You have either:
 * changed the constraints of dependency `FirebaseAppCheck` inside your development pod `firebase_app_check`.
   You should run `pod update FirebaseAppCheck` to apply changes you've made.

Any advice on how to resolve would be great

Thanks

github-actions[bot] commented 1 day ago

This issue is stale because it has been open for 30 days with no activity.