image picker not working when use google_mlkit_text_recognition on ios semulater M4 Mac
Describe your issue. If applicable, add screenshots to help explain your problem.
When I add google_mlkit_text_recognition to the image picker official exampl, the gallary open but it freezed and no error appear. i reviewed semilar behavior and they plamed that arche. issue was reported at https://github.com/flutter/flutter/issues/155401#issuecomment-2456164711. I found out that this issue occure when I add google_mlkit_text_recognition to my project. and work well without. It was pointed the error at https://github.com/flutter/flutter/issues/155401#issuecomment-2456164711 , I follow instruction to exelude armv7 and in Podfile but still not working.
Steps to reproduce.
Just add google_mlkit_text_recognition to pubspec.yaml in image picker official example. try it before it pick the image. but when added google_mlkit_text_recognition it freezed.
What is the expected result?
expected result to be able to pick the image so text recognetion be done.
Did you try our example app?
Yes
Is it reproducible in the example app?
Yes
Reproducible in which OS?
iOS
Flutter/Dart Version?
Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.29.2, on macOS 15.4 24E248 darwin-arm64, locale en-SA) [✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 16.3) [✓] Chrome - develop for the web [✓] Android Studio (version 2024.3) [✓] VS Code (version 1.99.2) [✓] Connected device (4 available) [✓] Network resources
• No issues found!
Plugin Version?
google_mlkit_text_recognition: ^0.13.0 google_mlkit_text_recognition: ^0.14.0 google_mlkit_text_recognition: ^0.15.0
@fbernaly any thoughts on this?
The issue is likely because of https://github.com/flutter/flutter/issues/79641#issuecomment-2299412011
@fbernaly any updates on this?
@dryasbk @fbernaly @hls-app This is a known issue while using the image_picker with ios Simulator on ios 16 You should use a physical device
@bensonarafat this has nothing to with image_picker. This issue occurs for Google Login as well.
Please see https://github.com/flutter/flutter/issues/79641#issuecomment-2299412011
Share me your repo to reproduce @hls-app
@bensonarafat
Steps are simple:
- Create a new flutter app
- Add
google_mlkit_text_recognitionas dep - Add
google_sign_inas dep - Update Podfile to meet Google Sign In requirements
- Add
GIDClientIDandCFBundleURLSchemesinInfo.plist - Add a button to trigger Google Sign in
- Run app and tap on the button!
PS: Make sure you run iOS 18+ on simulator.
Remove google_mlkit_text_recognition dependency and run flutter run
As you can see the sheet works properly now.
Thank you, i will look into it @hls-app
@bensonarafat can we re open this issue while this is being investigated?
Also, @bensonarafat in case we missed it, this is because of the arm64 support
See related issues https://github.com/firebase/flutterfire/issues/13420 https://github.com/flutter/flutter/issues/155401
See the comment: https://github.com/flutter/flutter/issues/79641#issuecomment-2299412011
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.