[Qt-creator] Debugging app using Camera on MacOS?
Lars Knoll
lars.knoll at qt.io
Tue May 18 10:40:40 CEST 2021
On 17 May 2021, at 18:50, Eike Ziller <Eike.Ziller at qt.io<mailto:Eike.Ziller at qt.io>> wrote:
On May 17, 2021, at 16:27, Jason H <jhihn at gmx.com<mailto:jhihn at gmx.com>> wrote:
Here is the question (asked by someone else) (Note this is specific to *debugging* the app.)
https://stackoverflow.com/questions/60459036/how-do-i-debug-an-app-on-the-mac-that-accesses-the-camera
with no good resolution.
It seems the way QtC is launching the debugger is running afoul of the NSCameraUsageDescription. Has anyone else figured out a way around this?
I'm wondering if the Info.plist needs to be applied to LLDB somehow?
I don’t quite understand if this is a Qt Creator specific issue or not.
If the issue is that Qt Creator starts lldb, and lldb starts the app, maybe running the app without debugging and then Debug > Start debugging > Attach to running application helps.
I’ve been doing some debugging of the camera on macOS lately. You do need to add the Info.plist with NSCameraUsageDescription/NSMicrophoneUsageDescription to your app to allow camera/microphone access.
After that, you might get a confirmation dialog to allow access on first launch. Once that’s confirmed, you should be able to debug the app just fine. At least it does work for me using Qt Creator.
Cheers,
Lars
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20210518/4a13e629/attachment-0001.html>
More information about the Qt-creator
mailing list