CodeScanner icon indicating copy to clipboard operation
CodeScanner copied to clipboard

Simulator not working with barcodes

Open nikitaskobelkin opened this issue 2 years ago • 1 comments

  1. Open scan on the simulator (Xcode)
  2. Scan from photo
  3. Choose barcode (for example code128 and etc.)
  4. Failure response

But on the real device is ok.

nikitaskobelkin avatar Apr 02 '22 15:04 nikitaskobelkin

Same issue for me with QR codes.

I'm using it in the HotProspects project from the course and it is unable to scan the images it has saved. Output is:

HotProspects[28896:3017418] Cannot find executable for CFBundle 0x12a372bb0 </System/Library/PrivateFrameworks/Quagga.framework> (not loaded)
Unable to load Quagga from /System/Library/PrivateFrameworks/Quagga.framework
Scanning failed: The operation couldn’t be completed. (CodeScanner.ScanError error 2.)

Seems like restarting the simulator "resolves" this issue.

kassi avatar Jul 31 '22 00:07 kassi

@nikitaskobelkin @kassi Is the bug still present in the latest version?

nathanfallet avatar Aug 28 '22 15:08 nathanfallet

@nikitaskobelkin just tried again and can't reproduce. As I wrote already, restarting the simulator helped. Didn't have the problem this time.

kassi avatar Aug 29 '22 10:08 kassi

Well, closing as the issue is not here anymore for now. If it occurs again, please reopen.

Also note that simulator scanning is not done the same way as real scanning from camera: https://github.com/twostraws/CodeScanner/blob/9aef09bf5c0274689a89c2fd71794011bebdc43f/Sources/CodeScanner/ScannerViewController.swift#L58

nathanfallet avatar Aug 29 '22 10:08 nathanfallet