Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85500

when macdeployqt 's hardened-runtime option is set, QPSQL plugin cannot be loaded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      XCODE 11.5
    • Platform/s:
      macOS

      Description

      when hardened-runtime is not set :

      DB Drivers: ("QSQLITE", "QODBC", "QODBC3", "QPSQL", "QPSQL7")
      db open: true

       

      when it is set : 

      DB Drivers: ("QSQLITE", "QODBC", "QODBC3", "QPSQL", "QPSQL7")
      QSqlDatabase: QPSQL driver not loaded
      QSqlDatabase: available drivers: QSQLITE QODBC QODBC3 QPSQL QPSQL7
      db open: false

       

      Since hardened-runtime is mandatory to have a valid notarized app, it looks that it is not possible to have a qt app with PSQL (libqsqlpsql.dylib) crossing the OS X gatekeeper.

       

      is this something particular in the QT plugins loading process which breaks apple policy under hardened runtime?

      Olivier

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            sorvig Morten Sørvig
            Reporter:
            olivier_parniere Olivier PARNIERE
            PM Owner:
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes