Pregunta

I am using the BarcodeScanner PhoneGap plugin to build an ios app, to allow me to scan barcodes. The build gives no errors and the simulator starts fine. In the Xcode simulator however, when I click on the scan link, I get the following error:

unable to obtain video capture device

Does this mean that I cannot test the app in Xcode, and the only way is to deploy to an actual device?

Thanks in advance

A

¿Fue útil?

Solución

The iOS Simulator User Guide lists the limitations of the simulator.

It states that camera (and so the barcode scanner) can only be tested on a real device.

However you could capture some scanning results on a real device and use them to test your code in the simulator.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top