Hi maintainers 👋
I’m reporting an iOS Simulator arm64 issue still reproducible with the current plugin stack.
Environment
- Flutter: 3.38.x (stable)
- Xcode: 26.x
- macOS: Apple Silicon (arm64)
- Plugin:
google_mlkit_face_detection: 0.13.2
Symptom
Build fails on iOS Simulator (arm64) with:
ld: building for 'iOS-simulator', but linking in object file (.../Pods/MLImage/Frameworks/MLImage.framework/MLImage[arm64][2](GMLImage.o)) built for 'iOS'
This indicates MLImage.framework being linked from an iOS-only slice while building for simulator.
What was verified
- Simulator destination appears correctly in
xcodebuild -showdestinations
- Build for physical iPhone succeeds
- Build for simulator fails at link stage with MLImage iOS-only binary
Reproduction
- Add
google_mlkit_face_detection: ^0.13.2
flutter pub get
cd ios && pod install
- Build for simulator destination (arm64)
- Observe linker failure above
Potentially related
Could you please confirm current simulator support status for this dependency chain and whether there is a planned fix/workaround for Apple Silicon simulators?
Thanks!