tauri-apps / tauri-apps/plugins-workspace

[plugin] barcode scanner plugin , crash on IOS simulator, because there is no camera

Open
#2,554 0 comments 0 reactions 0 assignees View on GitHub
platform: ios plugin: barcode-scanner
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

Hi.

barcode scanner plugin , crash on IOS simulator, because there is no camera.
expect behavior: return error instead of crash.

https://github.com/tauri-apps/plugins-workspace/blob/43f0f95da6d0232e5d9e7e7290749d27733bea84/plugins/barcode-scanner/ios/Sources/BarcodeScannerPlugin.swift#L254

crash due to `self.metaOutput` is nil.

[tauri] tauri_plugin_barcode_scanner/BarcodeScannerPlugin.swift:254: Fatal error: Unexpectedly found nil while unwrapping an Optional value

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.