Closed phiyale closed 1 year ago
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):
Currently the next release is planned at the end of Q4.
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.
The Google team has assigned the MLKit bug ticket https://issuetracker.google.com/issues/254418199 with a Priority level of P4.
P4 is the lowest priority they are working with, described as:
P4 | An issue that should be addressed eventually. Such an issue is not relevant to core organizational functions or the work of other teams, or else it relates only to the attractiveness or pleasantness of the system.
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. Thanks.
Originally posted by @MagnusJohansson in https://github.com/firebase/flutterfire/issues/9805#issuecomment-1296203266
@phiyale I cannot access the IssueTracker you indicate. Why is that?
@motoki-osaki They closed puclic access or removed recently, MLKIT team looks very irresponsible.
@phiyale Thanks. There must have been over 100 votes...going to remove them? How irresponsible the MLKIT team is.
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 cannot see the status and votes ( till yesterday have been more than 115 votes).
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... https://issuetracker.google.com/issues/254418199#comment22
@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:
MLKitVision.podspec.json
file in the same folder than your Podfile and copy the json content from https://github.com/CocoaPods/Specs/blob/master/Specs/8/1/e/MLKitVision/4.2.0/MLKitVision.podspec.jsonMLKitCommon.podspec.json
file in the same folder than your Podfile and copy the json content from https://github.com/CocoaPods/Specs/blob/master/Specs/c/c/6/MLKitCommon/8.0.0/MLKitCommon.podspec.jsonGTMSessionFetcher/Core
version to 2.1
in both created files.Podfile
under target 'Runner':
pod 'MLKitCommon', :podspec => 'MLKitCommon.podspec.json'
pod 'MLKitVision', :podspec => 'MLKitVision.podspec.json'
pod install
EDIT:
You should have the latest dependency in your pubspec.yaml
, which is google_mlkit_barcode_scanning: ^0.5.0
Hey @jorgeroncero Thanks for this, Any idea how can I implement this in my CI/CD tool? I am using codemagic for it.
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:
- Create
MLKitVision.podspec.json
file in the same folder than your Podfile and copy the json content from https://github.com/CocoaPods/Specs/blob/master/Specs/8/1/e/MLKitVision/4.2.0/MLKitVision.podspec.json- Create
MLKitCommon.podspec.json
file in the same folder than your Podfile and copy the json content from https://github.com/CocoaPods/Specs/blob/master/Specs/c/c/6/MLKitCommon/8.0.0/MLKitCommon.podspec.json- Modify
GTMSessionFetcher/Core
version to2.1
in both created files.- Add the following lines to your
Podfile
under target 'Runner':pod 'MLKitCommon', :podspec => 'MLKitCommon.podspec.json' pod 'MLKitVision', :podspec => 'MLKitVision.podspec.json'
- Run
pod install
- Build your app
I'm sorry @DevarshRanpara ... I have no idea, I use Fastalane as CI/CD.
Cheers, Tony
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:
- Create
MLKitVision.podspec.json
file in the same folder than your Podfile and copy the json content from https://github.com/CocoaPods/Specs/blob/master/Specs/8/1/e/MLKitVision/4.2.0/MLKitVision.podspec.json- Create
MLKitCommon.podspec.json
file in the same folder than your Podfile and copy the json content from https://github.com/CocoaPods/Specs/blob/master/Specs/c/c/6/MLKitCommon/8.0.0/MLKitCommon.podspec.json- Modify
GTMSessionFetcher/Core
version to2.1
in both created files.- Add the following lines to your
Podfile
under target 'Runner':pod 'MLKitCommon', :podspec => 'MLKitCommon.podspec.json' pod 'MLKitVision', :podspec => 'MLKitVision.podspec.json'
- Run
pod install
- Build your app
Hi, I put the two lines here and not worked for me:
target 'Runner' do
pod 'MLKitCommon', :podspec => 'MLKitCommon.podspec.json'
pod 'MLKitVision', :podspec => 'MLKitVision.podspec.json'
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
[!] CocoaPods could not find compatible versions for pod "MLKitCommon":
In Podfile:
MLKitCommon (from `MLKitCommon.podspec.json`)
MLKitVision (from `MLKitVision.podspec.json`) was resolved to 4.2.0, which depends on
MLKitCommon (~> 8.0)
mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`) was resolved to 0.0.1, which depends on
GoogleMLKit/BarcodeScanning (~> 2.6.0) was resolved to 2.6.0, which depends on
GoogleMLKit/MLKitCore (= 2.6.0) was resolved to 2.6.0, which depends on
MLKitCommon (~> 5.0.0)
Any suggestion? thanks.
I have applied the above workaround and referred to the podfile shared here. It worked for me. Thanks to those who shared their information. https://github.com/firebase/flutterfire/issues/9761#issuecomment-1301997595
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
I have applied the above workaround and referred to the podfile shared here. It worked for me. Thanks to those who shared their information. firebase/flutterfire#9761 (comment)
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
Thanks, it worked with mobile_scanner: ^3.0.0-beta.1
I can confirm it works with
PODFile -
...
$FirebaseSDKVersion = '10.1.0'
...
target 'Runner' do
pod 'MLKitCommon', :podspec => 'MLKitCommon.podspec.json'
pod 'MLKitVision', :podspec => 'MLKitVision.podspec.json'
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => $FirebaseSDKVersion
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
...
pubspec
cloud_firestore: ^4.0.4
firebase_core: ^2.1.1
flutter_riverpod: ^2.1.1
cloud_functions: ^4.0.3
firebase_auth: ^4.1.1
intl: ^0.17.0
sliver_tools: ^0.2.8
camera: ^0.10.0+4
path_provider: ^2.0.11
path: ^1.8.2
firebase_ml_model_downloader: ^0.2.0+4
stack_trace: ^1.10.0
google_mlkit_pose_detection: ^0.5.0
Workaround: https://github.com/bharat-biradar/Google-Ml-Kit-plugin/issues/357#issuecomment-1307431868 thanks @jorgeroncero Do not forget to edit Podfile https://github.com/bharat-biradar/Google-Ml-Kit-plugin/issues/357#issuecomment-1311771101 thanks @steven230500 @emileswain
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 https://issuetracker.google.com/issues/254418199#comment56
I'am closing the issue, after new pods released It can be implemented by contributors
same issue facing
@maulikchak : Solution is above: https://github.com/bharat-biradar/Google-Ml-Kit-plugin/issues/357#issuecomment-1328004866
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 2- Create MLKitCommon.podspec.json in ios folder taking content from https://github.com/CocoaPods/Specs/blob/master/Specs/c/c/6/MLKitCommon/8.0.0/MLKitCommon.podspec.json 3- Modify in both files the GTMSessionFetcher/Core definition from 1.1 to version 2.1. 4- the target "Runner" line in your Podfile should look like:
$FirebaseSDKVersion = '10.1.0' target 'Runner' do pod 'MLKitCommon', :podspec => 'MLKitCommon.podspec.json' pod 'MLKitVision', :podspec => 'MLKitVision.podspec.json' pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => $FirebaseSDKVersion use_frameworks! use_modular_headers! flutter_install_all_ios_pods File.dirname(File.realpath(FILE)) end
5- Run the command below
pod update GTMSessionFetcher/Core pod update Firebase/Auth pod install
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:
- Create
MLKitVision.podspec.json
file in the same folder than your Podfile and copy the json content from https://github.com/CocoaPods/Specs/blob/master/Specs/8/1/e/MLKitVision/4.2.0/MLKitVision.podspec.json- Create
MLKitCommon.podspec.json
file in the same folder than your Podfile and copy the json content from https://github.com/CocoaPods/Specs/blob/master/Specs/c/c/6/MLKitCommon/8.0.0/MLKitCommon.podspec.json- Modify
GTMSessionFetcher/Core
version to2.1
in both created files.- Add the following lines to your
Podfile
under target 'Runner':pod 'MLKitCommon', :podspec => 'MLKitCommon.podspec.json' pod 'MLKitVision', :podspec => 'MLKitVision.podspec.json'
- Run
pod install
- Build your app
EDIT: You should have the latest dependency in your
pubspec.yaml
, which isgoogle_mlkit_barcode_scanning: ^0.5.0
@jorgeroncero
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. Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'GTMAppAuth.GTMAppAuthFetcherAuthorization': 'ios/Pods/Headers/Public/GTMSessionFetcher/GTMSessionFetcher.h' ios/Pods/GTMAppAuth/GTMAppAuth/Sources/Public/GTMAppAuth/GTMAppAuthFetcherAuthorization.h:21:10
Parse Issue (Xcode): Could not build module 'GTMAppAuth' ios/Pods/GoogleSignIn/GoogleSignIn/Sources/Public/GoogleSignIn/GIDAuthentication.h:23:8
Parse Issue (Xcode): Could not build module 'GoogleSignIn' /Users/yyy/.pub-cache/hosted/pub.dartlang.org/google_sign_in_ios-5.5.1/ios/Classes/FLTGoogleSignInPlugin.m:7:8`
@glintpursuit can you show your Podfile?
Also, try to do a full clean pod install.
flutter clean
flutter pub get
cd ios && pod install
flutter run
Thanks for quick response @jorgeroncero
It was my bad, I didn't added below 2 lines inside target runner do
after adding it inside & before below line, I am able to get it running.
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.3.0'
POD File
target 'Runner' do
pod 'MLKitCommon', :podspec => 'MLKitCommon.podspec.json'
pod 'MLKitVision', :podspec => 'MLKitVision.podspec.json'
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.3.0'
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
@jorgeroncero Sorry, it's still not working. What I did:
ios
folder2.1
in MLKitVision.podspec.json
2.1
in MLKitCommon.podspec.json
flutter clean
flutter pub get
cd ios
pod install
[!] CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core": In Podfile: MLKitVision (from
MLKitVision.podspec.json
) was resolved to 4.2.0, which depends on GTMSessionFetcher/Core (~> 2.1)firebase_storage (from
.symlinks/plugins/firebase_storage/ios
) was resolved to 11.0.10, which depends on Firebase/Storage (= 10.3.0) was resolved to 10.3.0, which depends on FirebaseStorage (~> 10.3.0) was resolved to 10.3.0, which depends on GTMSessionFetcher/Core (< 4.0, >= 2.1)google_sign_in_ios (from
.symlinks/plugins/google_sign_in_ios/ios
) was resolved to 0.0.1, which depends on GoogleSignIn (~> 6.2) was resolved to 6.2.4, which depends on GTMSessionFetcher/Core (< 3.0, >= 1.1)
Can anyone be kind enough to tell me what am I doing wrong. I'll really be grateful to you. Thank in advance :)
@jorgeroncero Sorry, it's still not working. What I did:
1. Copied those two files in
ios
folder2. Changed the version to
2.1
inMLKitVision.podspec.json
3. Changed the version to
2.1
inMLKitCommon.podspec.json
4. Running command:
flutter clean flutter pub get cd ios pod install
Error:
[!] CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core": In Podfile: MLKitVision (from
MLKitVision.podspec.json
) was resolved to 4.2.0, which depends on GTMSessionFetcher/Core (~> 2.1)firebase_storage (from
.symlinks/plugins/firebase_storage/ios
) was resolved to 11.0.10, which depends on Firebase/Storage (= 10.3.0) was resolved to 10.3.0, which depends on FirebaseStorage (~> 10.3.0) was resolved to 10.3.0, which depends on GTMSessionFetcher/Core (< 4.0, >= 2.1)google_sign_in_ios (from
.symlinks/plugins/google_sign_in_ios/ios
) was resolved to 0.0.1, which depends on GoogleSignIn (~> 6.2) was resolved to 6.2.4, which depends on GTMSessionFetcher/Core (< 3.0, >= 1.1)Podfile Can anyone be kind enough to tell me what am I doing wrong. I'll really be grateful to you. Thank in advance :)
4- the target "Runner" line in your Podfile should look like:
$FirebaseSDKVersion = '10.1.0' target 'Runner' do pod 'MLKitCommon', :podspec => 'MLKitCommon.podspec.json' pod 'MLKitVision', :podspec => 'MLKitVision.podspec.json' pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => $FirebaseSDKVersion use_frameworks! use_modular_headers! flutter_install_all_ios_pods File.dirname(File.realpath(FILE)) end
@raysonlim77 Thanks, I changed that but it still didn't work.
@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?
MLKitVision (from
MLKitVision.podspec.json
) was resolved to 4.2.0, which depends on GTMSessionFetcher/Core (~> 2.1)
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
/Users/username/.cocoapods/repos/trunk/Specs/0/d/7/MLKitNaturalLanguage/4.2.0/MLKitNaturalLanguage.podspec.json
file, I changed GTMSessionFetcher/Core
from 1.1
to 2.1
.
You can download MLKitNaturalLanguage.podspec.json in your ios
directory, change the GTMSessionFetcher/Core
from 1.1
to 2.1
and add it to your podfile
:
$FirebaseSDKVersion = '10.3.0'
target 'Runner' do
pod 'MLKitCommon', :podspec => 'MLKitCommon.podspec.json'
pod 'MLKitVision', :podspec => 'MLKitVision.podspec.json'
pod 'MLKitNaturalLanguage', :podspec => 'MLKitNaturalLanguage.podspec.json'
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => $FirebaseSDKVersion
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
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: https://github.com/firebase/flutterfire/commit/9627c56a37d657d0250b6f6b87d0fec1c31d4ba3 https://github.com/firebase/flutterfire/pull/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.