-
Notifications
You must be signed in to change notification settings - Fork 866
google_mlkit_object_detection fails on Apple Silicon iOS Simulator due to missing arm64 support #854
Description
The following target(s) do not support arm64 architecture, which is a requirement for Apple Silicon iOS 26+ simulators:
- GoogleMLKit (transitive dependency of Flutter plugin google_mlkit_object_detection)
- MLImage (transitive dependency of Flutter plugin google_mlkit_commons)
- MLKitCommon (transitive dependency of Flutter plugin google_mlkit_object_detection)
- MLKitImageLabelingCommon (transitive dependency of Flutter plugin google_mlkit_object_detection)
- MLKitObjectDetection (transitive dependency of Flutter plugin google_mlkit_object_detection)
- MLKitObjectDetection-MLKitObjectDetectionResources (transitive dependency of Flutter plugin google_mlkit_object_detection)
- MLKitObjectDetectionCommon (transitive dependency of Flutter plugin google_mlkit_object_detection)
- MLKitObjectDetectionCommon-MLKitObjectDetectionCommonResources (transitive dependency of Flutter plugin google_mlkit_object_detection)
- MLKitObjectDetectionCustom (transitive dependency of Flutter plugin google_mlkit_object_detection)
- MLKitVision (transitive dependency of Flutter plugin google_mlkit_commons)
- MLKitVisionKit (transitive dependency of Flutter plugin google_mlkit_object_detection)
Please contact plugin maintainers to request arm64 support to continue to be able to use the plugin on a simulator.
Steps to reproduce.
- Create a new Flutter project
- Add ML Kit plugin (e.g. object detection)
- Install iOS dependencies
- Open the project in Xcode
- Select an iOS Simulator (iOS 26+ on Apple Silicon Mac)
- Run the app
- Observe build failure with error:
What is the expected result?
- The Flutter app should build successfully on the iOS Simulator (Apple Silicon / arm64) without any architecture-related errors.
- All dependencies, including Google ML Kit plugins, should compile and link correctly for the simulator.
- The app should launch normally on the simulator.
- Features using ML Kit (e.g., object detection) should initialize and run without crashes or build issues.
Did you try our example app?
Yes
Is it reproducible in the example app?
Yes
Reproducible in which OS?
iOS
Flutter/Dart Version?
➜ ~ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.41.5, on macOS 26.3.1 25D771280a darwin-arm64,
locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.0.1)
[✓] Chrome - develop for the web
[✓] Connected device (4 available)
! Error: Browsing on the local area network for Flutter Gaaubesi. Ensure the
device is unlocked and attached with a cable or associated with the same
local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code
-27)
[✓] Network resources
• No issues found!
Plugin Version?
google_mlkit_object_detection: ^0.15.1