Crash on iOS Simulator: Unexpectedly found nil
azhar-ba opened this issue · 0 comments
azhar-ba commented
Crash when running 1.0.2
on Simulator (iPhone 12 Pro):
Unexpectedly found nil while unwrapping an Optional value: file qr_mobile_vision/QrReader.swift, line 138
Flutter doctor:
[✓] Flutter (Channel master, 1.24.0-8.0.pre.17, on macOS 11.1 20C69 darwin-x64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.0)
[✓] Connected device (4 available)
• No issues found!
Expected behaviour:
The simulators have no camera support so an error is expected. An error returned from the onError
callback would be ideal.