Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. qmlc files modified in application bundle after start

qmlc files modified in application bundle after start

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 3 Posters 462 Views
  • 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.
  • R Offline
    R Offline
    ribtoks
    wrote on last edited by
    #1

    I managed to successfully sign and notarize Qt app, but right after start, it modifies files in \Resources\ directory and the signature is no longer valid. Is there any way to prevent it or precompile?

    codesign --verify --verbose /Applications/MyApp.app/
    /Applications/MyApp.app/: a sealed resource is missing or invalid
    file modified: /Applications/MyApp.app/Contents/Resources/qml/QtQuick/Controls/ScrollView.qmlc
    file modified: /Applications/MyApp.app/Contents/Resources/qml/QtQuick/Controls/CheckBox.qmlc
    file modified: /Applications/MyApp.app/Contents/Resources/qml/QtQuick/Controls/Menu.qmlc
    file modified: /Applications/MyApp.app/Contents/Resources/qml/QtQuick/Controls/Button.qmlc
    ...
    ...
    

    I'm using Qt 5.9.8 on macOS Mojave (10.14.6).

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

      Hi,

      Why does your application modify its own bundle content ?

      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
      • R Offline
        R Offline
        ribtoks
        wrote on last edited by
        #3

        Hi,
        Well, that is the problem! I do NOT explicitly modify anything. Those are "system" qml files (Button.qml/Checkbox.qml) that apparently get compiled into .qmlc files. Main questions is why they are placed in the bundle? They appear after the launch of my App and invalidate all the macOS signature/notarization hell I went through before. (Just for the reference, my app is super hello-world QML app without anything special, just shows animation and saves a small text file to ~/Library/Application Support/MyApp/myfile.txt

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          To me it sounds like a Qt bug, perhaps you should report it on the bug tracker.

          In the meantime, what could help is to use custom prebuilding description from this documentation page.

          (Z(:^

          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