Qt Creator 7 MacOS permissions
-
On Mac ARM64 computers, applications run from Qt Creator on MacOS Monteray required acquiring permissions every time. This is supposed to be fixed in Qt Creator 7. In the release blog: "On macOS Qt Creator now uses the systems dark mode when setting a dark theme, and we fixed that user applications inherited access permissions from Qt Creator. If your application accesses restricted resources, this will be better reflected now while developing the application with Qt Creator."
This does work when the application is run in release mode, but in my case, not when in debug mode. Is this something I am doing wrong, or has it not been completely fixed?
-
I do not experience the problem but you could try to sign your Qt Creator app again locally and see if this fixes the problem with inherited permissions. Code signature on macOS is sometimes strange.
Use this command:codesign -s - --deep ~/Qt/Qt\ Creator.app
-
@DerReisende Thanks - I had tried that, and before Creator 7, it solved the problem in release mode. It does not help in Debug mode.
-
Okay, I've narrowed down when proper MacOS signing is not occurring. If I build for either x86 or arm then I do not have a permissions problem, BUT when I build for both x86 and arm to create a universal binary then the resulting app is not signed. Here is the problem build setting when the qmake details are expanded: