flutter_zxing icon indicating copy to clipboard operation
flutter_zxing copied to clipboard

iOS camera stream crash "Unsupported value: (Function) of type __SwiftValue" - requires camera_avfoundation dependency override

Open julia-orthopy opened this issue 6 months ago • 1 comments

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

julia-orthopy avatar Jul 09 '25 08:07 julia-orthopy