I’m running macOS 14.4.1 and Xojo 2024R1. When I run the Xojo barcode scan example project and click Start Scan, macOS asks for permission to access the camera and then shows the image it detects.
But when I incorporate the same code in my own project, when I issue the command barcode1.StartScan I’m not asked for permission. The scan window opens and the camera is listed in the popup menu of available options, but no image is shown.
My project is mostly API1, but for this feature I’ve placed the Barcode class on a DesktopWindow.
To be clear, I can’t give my app access to the camera in System Preferences → Privacy because it’s not listed as an option. I’ve added a privacy statement in info.plist to deal with camera access, but that doesn’t help.
Any suggestions?