flutter_zxing
flutter_zxing copied to clipboard
iOS camera stream crash "Unsupported value: (Function) of type __SwiftValue" - requires camera_avfoundation dependency override
Description
The QR scanner crashes on iOS when attempting to initialize the camera stream. This appears to be caused by a regression in camera_avfoundation (used internally by the camera plugin), affecting versions after 0.9.19+1, as detailed in flutter/flutter#170240.
Environment
- flutter_zxing: 2.1.0
- Flutter: 3.32.5
Current Workaround
Adding this dependency override in pubspec.yaml fixes the crash:
dependency_overrides:
camera_avfoundation: 0.9.20+1