I got it working with a manual copy, but also filed:
https://bugreports.qt.io/browse/QTBUG-93832
 
 
 
Sent: Tuesday, May 18, 2021 at 4:40 AM
From: "Lars Knoll" <lars.kn...@qt.io>
To: "Eike Ziller" <eike.zil...@qt.io>
Cc: "Jason H" <jh...@gmx.com>, "qt-creator" <qt-creator@qt-project.org>
Subject: Re: [Qt-creator] Debugging app using Camera on MacOS?
On 17 May 2021, at 18:50, Eike Ziller <eike.zil...@qt.io> wrote:
On May 17, 2021, at 16:27, Jason H <jh...@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
 
_______________________________________________
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator

Reply via email to