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. macOS - built app modifies it contents (and breaks code signing)

macOS - built app modifies it contents (and breaks code signing)

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 1.0k Views 2 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.
  • TW_RMAT Offline
    TW_RMAT Offline
    TW_RMA
    wrote on last edited by
    #1

    Hi

    I'm developing an app for both Windows & macOS. However I encountered a problem with codesigning and running the app on macOS:

    After building the app and deploying it with macdeployqt I manually sign it using codesign (and verify it using both codesign and spctl - all fine). However after first run the signature is broken ("A sealed resource is missing or invalid").

    I managed to find that the problematic resources are newly created qmlc files located in the App Name.app/Contents/Resources/qml/QtGraphicalEffects/, like LinearGradient.qmlc and GaussianBlur.qmlc.

    Why does the app generates them on the client machine? How can I prevent that?

    Thanks in advance,
    Tomek

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What version of Qt are you using ?
      What about using the code signing option of 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
      • TW_RMAT Offline
        TW_RMAT Offline
        TW_RMA
        wrote on last edited by
        #3

        I'm using Qt 5.11.1 (Tried 5.11.2 as well).
        I've tried macdeployqt code signing, however I'm running into the same issue - before launching the app all signatures are valid, after first run Gatekeeper check fails:

        Error details: “-67054: a sealed resource is missing or invalid” {
        	Resources added: 
        		Contents/Resources/qml/QtGraphicalEffects/GaussianBlur.qmlc
        		Contents/Resources/qml/QtGraphicalEffects/FastBlur.qmlc
        		Contents/Resources/qml/QtGraphicalEffects/DropShadow.qmlc
        		Contents/Resources/qml/QtGraphicalEffects/LinearGradient.qmlc
        }
        

        Any idea how to prevent doing that? If I make that internal dir read-only then user will have a bad time trying to update/uninstall the app...

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Since 5.12 was released can you test with it ?

          If it still fails, can you provide a minimal compilable example that shows that behaviour ?

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

          TW_RMAT 1 Reply Last reply
          0
          • SGaistS SGaist

            Since 5.12 was released can you test with it ?

            If it still fails, can you provide a minimal compilable example that shows that behaviour ?

            TW_RMAT Offline
            TW_RMAT Offline
            TW_RMA
            wrote on last edited by
            #5

            @SGaist Sadly it doesn't work on Qt 5.12.

            I will try to prepare a minimal example in next days.

            1 Reply Last reply
            0

            • Login

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