Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Mac OS Mojave privacy prompt not appearing in notarized builds.
Qt 6.12 LTS is out! See what's new in the release blog

Mac OS Mojave privacy prompt not appearing in notarized builds.

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Joshua Parmenter
    wrote on last edited by
    #1

    In signed / notarized Mac builds on Mojave, I can't seem to get the microphone permissions to work correctly. I have values in the Info.plist that, on unsigned builds, will prompt the user for permissions, but once signed and notarized, I can't seem to get new users / installations the input from the mic.
    For reference, here was a past issue that has been solved (and my current situation is in the last comment). Thanks!

    https://forum.qt.io/topic/97570/macos-mojave-privacy-prompt-not-appearing-when-debugging-audio-app-in-qt-creator

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Joshua Parmenter
      wrote on last edited by
      #2

      Re: Mac OS Mojave privacy prompt not appearing in notarized builds.

      Still no luck on my end with this. Anyone else have any ideas what the differences could be for this between signed and unsigned?

      K 1 Reply Last reply
      0
      • J Joshua Parmenter

        Re: Mac OS Mojave privacy prompt not appearing in notarized builds.

        Still no luck on my end with this. Anyone else have any ideas what the differences could be for this between signed and unsigned?

        K Offline
        K Offline
        Karl Wolfram
        wrote on last edited by Karl Wolfram
        #3

        @Joshua-Parmenter Same problem here. I have an app that uses the microphone for audio capture. When built with Qt 5.9.x/XCode 9 it runs fine and I get automatic prompts to access the microphone, even when the app is signed.

        When built with Qt 5.12.5 / XCode 10, it works when the app is not signed. When it is signed and/or notarized, I don't get the automatic prompt.
        So I added a manual prompt as described at https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/requesting_authorization_for_media_capture_on_macos

        With that, the app works when it is not signed. When it is signed and/or notarized, calling for the microphone access prompt causes a crash.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          Joshua Parmenter
          wrote on last edited by
          #4

          @Karl-Wolfram - I don't get a crash with that, and I actually have that in my project already. So - doubly troubling that I don't get the prompt! That being said - what is the crash you see? More than happy to try and help you figure that out if you can post a crash dump here or in a message to me. Thanks for your feedback, though - at least I know it isn't just my project!

          1 Reply Last reply
          0
          • J Offline
            J Offline
            Joshua Parmenter
            wrote on last edited by
            #5

            Anyone else seeing this issue? Want to surface it once more in case anyone else has some insights.

            1 Reply Last reply
            0
            • J Offline
              J Offline
              Joshua Parmenter
              wrote on last edited by
              #6

              I finally got this working. The info plist needs to have a string in place to ask for permissions (as mentioned already) and the app, when signed, needs to have entitlements attached that include:

              <key>com.apple.security.device.audio-input</key>
              <true/>
              <key>com.apple.security.device.microphone</key>
              <true/>
              

              Hope that helps someone else in the future!

              1 Reply Last reply
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt
              • Unsolved