Upgrade mobile_scanner to ^7.0.0 to restore arm64 iOS Simulator support #2153
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upgrade
mobile_scannerto ^7.1.4 to restore arm64 iOS Simulator supportThis PR upgrades the
mobile_scannerdependency in theqr_scannermodule from^6.0.11to^7.1.4.The previous version relied on MLKit for iOS barcode/QR scanning, which does not support arm64 architecture on iOS Simulators (Apple Silicon Macs). This caused build and runtime failures when targeting arm64 simulators.
Starting with
mobile_scannerv7.0.0, MLKit has been deprecated on iOS in favor of Apple’s native Vision API, which:Changes
modules/qr_scanner/pubspec.yaml:Impact
Fixes build failures on arm64 iOS Simulators (M1/M2/M3/M4 Macs)
Removes the need for Rosetta, physical devices, or architecture exclusions
Closes #2152