-
Notifications
You must be signed in to change notification settings - Fork 792
Dependency conflict with flutterfire (firebase - google_mlkit_face_detection) [GTMSessionFetcher/Core] #357
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
Comments
I'm facing the same problem but for google_mlkit_text_recognition ( MLKitTextRecognitionKorean and MLKitTextRecognitionJapanese ) I guess the conflict will be solved for all the modules at once since it's a common dependency. |
MLKit Team(Google side):
https://issuetracker.google.com/issues/254418199#comment22 😔 You can Vote(I'am impacted button) which at the issue above, you can also leave a comment. |
P4 is the lowest priority they are working with, described as:
All of you who are experiencing this Google bug, could you please browse to the https://issuetracker.google.com/issues/254418199 issue, and click on the "+1" blue button on the top right to make Google aware that it is affecting people. Originally posted by @MagnusJohansson in firebase/flutterfire#9805 (comment) |
@phiyale |
@motoki-osaki |
@phiyale |
This is a frustrating situation!!! I cannot access anymore to https://issuetracker.google.com/issues/254418199 , and I am blocked with my App upgrade development!! |
I am personally convinced that the mlkit team and their projects cannot be trusted. it seems very important to switch to a more reliable and fully open source alternative instead. |
Latest update did not resolve the issue. And I cannot access https://issuetracker.google.com/issues/254418199 as well. Could you please kindly share ETA for the fix to be available? |
Now can access it. What's going on... |
@motoki-osaki ahahaha no idea. they may be ambivalent about democracy and transparency :) |
I've managed to workaround this issue until a new stable MLKitVision/MLKitCommons version is released. I didn't test all features of MLKit but for me it's building and working for barcode scanning. I don't know if there could be any potential error since we are overriding the GTMSessionFetcher version from 1.1 to 2.1 without any code check. The steps are:
pod 'MLKitCommon', :podspec => 'MLKitCommon.podspec.json'
pod 'MLKitVision', :podspec => 'MLKitVision.podspec.json'
EDIT: |
Hey @jorgeroncero Thanks for this, Any idea how can I implement this in my CI/CD tool? I am using codemagic for it.
|
I'm sorry @DevarshRanpara ... I have no idea, I use Fastalane as CI/CD. Cheers, Tony |
Hi, I put the two lines here and not worked for me:
Any suggestion? thanks. |
I have applied the above workaround and referred to the podfile shared here. It worked for me. firebase_core: ^2.1.1
firebase_auth: ^4.1.1
cloud_firestore: ^4.0.4
cloud_firestore_odm: ^1.0.0-dev.39
firebase_storage: ^11.0.4
firebase_crashlytics: ^3.0.4
firebase_messaging: ^14.0.4
mobile_scanner: ^3.0.0-beta.1 My Podfile here# Override Firebase SDK Version
$FirebaseSDKVersion = '10.1.0'
# Uncomment this line to define a global platform for your project
platform :ios, '15.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
target 'Runner' do
# see...
# https://github.com/juliansteenbakker/mobile_scanner/issues/335#issuecomment-1308829103
# https://issuetracker.google.com/issues/254418199#comment48
pod 'MLKitVision', :podspec => 'MLKitVision.podspec.json'
pod 'MLKitCommon', :podspec => 'MLKitCommon.podspec.json'
use_frameworks!
use_modular_headers!
# see...
# https://github.com/firebase/flutterfire/issues/9761#issuecomment-1301997595
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => $FirebaseSDKVersion
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end |
Thanks, it worked with mobile_scanner: ^3.0.0-beta.1 |
I can confirm it works with PODFile -
pubspec
|
Workaround: The solution above works, confirmed few people(including me), any side effect not reported yet. MLKit team also suggesting tweaking dependencies before MLKit release new pods I'am closing the issue, after new pods released It can be implemented by contributors |
same issue facing |
@maulikchak : Solution is above: #357 (comment) |
1- Create MLKitVision.podspec.json in ios folder taking content from https://github.com/CocoaPods/Specs/blob/master/Specs/8/1/e/MLKitVision/4.2.0/MLKitVision.podspec.json $FirebaseSDKVersion = '10.1.0' 5- Run the command below
|
After implementing above hack able to get pod installed but unable get app build for IOS `Could not build the precompiled application for the device. Parse Issue (Xcode): Could not build module 'GTMAppAuth' Parse Issue (Xcode): Could not build module 'GoogleSignIn' |
@glintpursuit can you show your Podfile? Also, try to do a full clean pod install.
|
Thanks for quick response @jorgeroncero It was my bad, I didn't added below 2 lines inside pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.3.0' POD File
|
@jorgeroncero Sorry, it's still not working. What I did: 1. Copied those two files in
|
4- the target "Runner" line in your Podfile should look like: $FirebaseSDKVersion = '10.1.0' |
@raysonlim77 Thanks, I changed that but it still didn't work. |
this method doesn't work for mlkit_language |
But why I'm getting the error in this line?
I think I am doing something wrong and I have no idea what that is. |
Finally, I was able to solve it, thanks to @raysonlim77 for giving me hints. With all the steps mentioned above, I also had to make one more change and that is in my ORYou can download MLKitNaturalLanguage.podspec.json in your
|
I have solved by changing the MLKitVision.podspec.json and MLKitCommon.podspec.json. |
Hello,
flutterfire released a major update, 4 days ago. after updating firebase libs I got the error below:
I've updated the face_detection package but error still occurs,
in pubspec.yaml
flutterfire side:
firebase/flutterfire@9627c56
firebase/flutterfire#9708
flutter doctor:
Are you planning any update update to resolve conflict, or should I rollback FIR update and wait for a while?
Do you any advice to workaround?
Thanks.
The text was updated successfully, but these errors were encountered: