I’ve a flutter undertaking that use a firebase auth for login and registration, and that i wish to add google_mlkit_face_detection to detect face on a picture, however the google_mlkit_face_detection and firebase_auth battle one another for IOS, when runing pod set up present me this error.
Error: CocoaPods's specs repository is simply too out-of-date to fulfill dependencies.
To replace the CocoaPods specs, run:
pod repo replace
that is the opening error
CocoaPods’ output:
↳
Making ready
Analyzing dependencies
Inspecting targets to combine
UtilizingARCHS
setting to construct architectures of goalPods-Runner
: (“)
Discovering Podfile modifications
A google_mlkit_commons
A google_mlkit_face_detection
– Flutter
– firebase_auth
– firebase_core
– image_picker_ios
– path_provider_foundation
Fetching exterior sources
-> Fetching podspec forFlutter
fromFlutter
-> Fetching podspec forfirebase_auth
from.symlinks/plugins/firebase_auth/ios
firebase_auth: Utilizing Firebase SDK model ‘10.9.0’ outlined in ‘firebase_core’
-> Fetching podspec forfirebase_core
from.symlinks/plugins/firebase_core/ios
firebase_core: Utilizing Firebase SDK model ‘10.9.0’ outlined in ‘firebase_core’
-> Fetching podspec forgoogle_mlkit_commons
from.symlinks/plugins/google_mlkit_commons/ios
-> Fetching podspec forgoogle_mlkit_face_detection
from.symlinks/plugins/google_mlkit_face_detection/ios
-> Fetching podspec forimage_picker_ios
from.symlinks/plugins/image_picker_ios/ios
-> Fetching podspec forpath_provider_foundation
from.symlinks/plugins/path_provider_foundation/darwin
Resolving dependencies ofPodfile
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning native as a result of checking is barely carried out in repo replace
CDN: trunk Relative path: all_pods_versions_0_3_5.txt exists! Returning native as a result of checking is barely carried out in repo replace
CDN: trunk Relative path: Specs/0/3/5/Firebase/10.10.0/Firebase.podspec.json exists! Returning native as a result of checking is barely carried out in repo replace
CDN: trunk Relative path: Specs/0/3/5/Firebase/10.9.0/Firebase.podspec.json exists! Returning native as a result of checking is barely carried out in repo replace
CDN: trunk Relative path: all_pods_versions_8_1_e.txt exists! Returning native as a result of checking is barely carried out in repo replace
CDN: trunk Relative path: Specs/8/1/e/MLKitVision/5.0.0/MLKitVision.podspec.json exists! Returning native as a result of checking is barely carried out in repo replace
CDN: trunk Relative path: all_pods_versions_4_2_c.txt exists! Returning native as a result of checking is barely carried out in repo replace
CDN: trunk Relative path: Specs/4/2/c/FlutterMacOS/3.0.0/FlutterMacOS.podspec.json exists! Returning native as a result of checking is barely carried out in repo replace
CDN: trunk Relative path: Specs/0/3/5/Firebase/10.9.0/Firebase.podspec.json exists! Returning native as a result of checking is barely carried out in repo replace
CDN: trunk Relative path: all_pods_versions_b_e_b.txt exists! Returning native as a result of checking is barely carried out in repo replace
2
CDN: trunk Relative path: Specs/b/e/b/GoogleMLKit/4.0.0/GoogleMLKit.podspec.json exists! Returning native as a result of checking is barely carried out in repo replace
CDN: trunk Relative path: all_pods_versions_6_3_6.txt exists! Returning native as a result of checking is barely carried out in repo replace
CDN: trunk Relative path: Specs/6/3/6/FirebaseAuth/10.10.0/FirebaseAuth.podspec.json exists! Returning native as a result of checking is barely carried out in repo replace
[!] CocoaPods couldn't discover suitable variations for pod "GTMSessionFetcher/Core":
In snapshot (Podfile.lock):
GTMSessionFetcher/Core (< 4.0, = 3.1.1, >= 2.1)
In Podfile:
firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) was resolved to 4.6.1, which is dependent upon
Firebase/Auth (= 10.9.0) was resolved to 10.9.0, which is dependent upon
FirebaseAuth (~> 10.9.0) was resolved to 10.9.0, which is dependent upon
GTMSessionFetcher/Core (< 4.0, >= 2.1)
google_mlkit_face_detection (from `.symlinks/plugins/google_mlkit_face_detection/ios`) was resolved to 0.7.0, which is dependent upon
GoogleMLKit/FaceDetection (~> 4.0.0) was resolved to 4.0.0, which is dependent upon
GoogleMLKit/MLKitCore (= 4.0.0) was resolved to 4.0.0, which is dependent upon
MLKitCommon (~> 9.0.0) was resolved to 9.0.0, which is dependent upon
GTMSessionFetcher/Core (< 3.0, >= 1.1)
You've both:
* out-of-date supply repos which you'll be able to replace with `pod repo replace` or with `pod set up --repo-update`.
* modified the constraints of dependency `GTMSessionFetcher/Core` inside your growth pod `google_mlkit_face_detection`.
It is best to run `pod replace GTMSessionFetcher/Core` to use modifications you have made.
and pubspec.yamel file
dependencies:
flutter:
sdk: flutter
# The next provides the Cupertino Icons font to your software.
# Use with the CupertinoIcons class for iOS fashion icons.
cupertino_icons: ^1.0.2
firebase_core: any
firebase_auth: any
#google_mlkit_commons: ^0.4.0
google_mlkit_face_detection: any
get: ^4.6.5
get_storage: ^2.1.1
dio: ^5.1.2
image_picker: ^0.8.7
iconly: ^1.0.1
intl: ^0.18.1
age_calculator: ^1.0.0