google_ml_kit_flutter icon indicating copy to clipboard operation
google_ml_kit_flutter copied to clipboard

image picker not working when use google_mlkit_text_recognition on ios semulater M4 Mac

Open dryasbk opened this issue 8 months ago • 11 comments

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

dryasbk avatar Apr 18 '25 13:04 dryasbk

@fbernaly any thoughts on this?

The issue is likely because of https://github.com/flutter/flutter/issues/79641#issuecomment-2299412011

hls-app avatar May 06 '25 12:05 hls-app

@fbernaly any updates on this?

hls-app avatar May 11 '25 11:05 hls-app

@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 avatar May 12 '25 18:05 bensonarafat

@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

hls-app avatar May 14 '25 01:05 hls-app

Share me your repo to reproduce @hls-app

bensonarafat avatar May 14 '25 02:05 bensonarafat

@bensonarafat

sheet_issue.zip

Steps are simple:

  1. Create a new flutter app
  2. Add google_mlkit_text_recognition as dep
  3. Add google_sign_in as dep
  4. Update Podfile to meet Google Sign In requirements
  5. Add GIDClientID and CFBundleURLSchemes in Info.plist
  6. Add a button to trigger Google Sign in
  7. Run app and tap on the button!

PS: Make sure you run iOS 18+ on simulator.

Image

hls-app avatar May 17 '25 15:05 hls-app

Image

Remove google_mlkit_text_recognition dependency and run flutter run

As you can see the sheet works properly now.

hls-app avatar May 17 '25 15:05 hls-app

Thank you, i will look into it @hls-app

bensonarafat avatar May 17 '25 19:05 bensonarafat

@bensonarafat can we re open this issue while this is being investigated?

hls-app avatar May 20 '25 08:05 hls-app

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

hls-app avatar May 21 '25 03:05 hls-app

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

github-actions[bot] avatar Jun 20 '25 12:06 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jul 04 '25 12:07 github-actions[bot]