Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Application using microphone on macOS does not request microphone access
Forum Updated to NodeBB v4.3 + New Features

Application using microphone on macOS does not request microphone access

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 457 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.
  • C Offline
    C Offline
    cristeab
    wrote on 21 Feb 2020, 19:56 last edited by
    #1

    Hi

    I have an application written with Qt 5.14.1 on macOS 10.15 that uses the microphone to record sound. Without signing the application, the microphone access is requested when the recording is started.

    However, after signing the application with

    codesign --strict --timestamp --force --verify --verbose \
             --entitlements ./Entitlements.plist \
             --sign "..." \
             --options runtime ./build/$APP_NAME.app \
             --deep
    

    the microphone access is not requested anymore. Removing --deep option seems to solve this problem, but the application does not pass the signing test:

    codesign --verify --verbose=4 --deep --strict ./build/$APP_NAME.app
    

    and the application cannot be notarised (this is now mandatory for applications distributed outside Mac App Store).

    Does anyone know how to solve this problem ?

    thank you
    Bogdan

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 21 Feb 2020, 21:00 last edited by
      #2

      Hi,

      Did you trying signing it using macdeployqt ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cristeab
        wrote on 22 Feb 2020, 08:02 last edited by cristeab
        #3

        macdeploy doesn't have support for notarisation, after using -codesign option with macdeploy, the notarisation process fails with the error:

        "The executable does not have the hardened runtime enabled.",

        1 Reply Last reply
        0

        2/3

        21 Feb 2020, 21:00

        • Login

        • Login or register to search.
        2 out of 3
        • First post
          2/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved