Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. macdeployqt codesign verification error
QtWS25 Last Chance

macdeployqt codesign verification error

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
5 Posts 2 Posters 562 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.
  • Jonas KvingeJ Offline
    Jonas KvingeJ Offline
    Jonas Kvinge
    wrote on last edited by
    #1

    macdeployqt fails codesign verification:

    ERROR: codesign verification error:
    ERROR: "strawberry.app: code has no resources but signature indicates they must be present\nIn subcomponent: /Users/jonas/Projects/strawberry/build/strawberry.app/Contents/Frameworks/QtGui.framework\n"
    

    Same thing happens when running codsign verification manually after macdeployqt is finished:

    jonas@ni214 build % codesign --deep -v strawberry.app                  
    strawberry.app: code has no resources but signature indicates they must be present
    In subcomponent: /Users/jonas/Projects/strawberry/build/strawberry.app/Contents/Frameworks/QtGui.framework
    

    The file structure looks like this:

    jonas@ni214 build % find strawberry.app/Contents/Frameworks/QtGui.framework
    strawberry.app/Contents/Frameworks/QtGui.framework
    strawberry.app/Contents/Frameworks/QtGui.framework/Resources
    strawberry.app/Contents/Frameworks/QtGui.framework/Versions
    strawberry.app/Contents/Frameworks/QtGui.framework/Versions/A
    strawberry.app/Contents/Frameworks/QtGui.framework/Versions/A/Resources
    strawberry.app/Contents/Frameworks/QtGui.framework/Versions/A/Resources/Info.plist
    strawberry.app/Contents/Frameworks/QtGui.framework/Versions/A/QtGui
    strawberry.app/Contents/Frameworks/QtGui.framework/Versions/Current
    strawberry.app/Contents/Frameworks/QtGui.framework/QtGui
    

    This is Qt 6.5.2 built from source on macOS Ventura.

    SGaistS 1 Reply Last reply
    0
    • SGaistS SGaist

      Hi,

      Did you run macdeployqt to setup your app bundle content ?

      Jonas KvingeJ Offline
      Jonas KvingeJ Offline
      Jonas Kvinge
      wrote on last edited by
      #4

      @SGaist

      Found the issue. mcdeployqt was using @loader_path's instead of @rpath's when the executable parameter was used and wasn't handling the libraries with @loader_path's when signing. Fix here: https://codereview.qt-project.org/c/qt/qtbase/+/511503

      SGaistS 1 Reply Last reply
      1
      • Jonas KvingeJ Jonas Kvinge

        macdeployqt fails codesign verification:

        ERROR: codesign verification error:
        ERROR: "strawberry.app: code has no resources but signature indicates they must be present\nIn subcomponent: /Users/jonas/Projects/strawberry/build/strawberry.app/Contents/Frameworks/QtGui.framework\n"
        

        Same thing happens when running codsign verification manually after macdeployqt is finished:

        jonas@ni214 build % codesign --deep -v strawberry.app                  
        strawberry.app: code has no resources but signature indicates they must be present
        In subcomponent: /Users/jonas/Projects/strawberry/build/strawberry.app/Contents/Frameworks/QtGui.framework
        

        The file structure looks like this:

        jonas@ni214 build % find strawberry.app/Contents/Frameworks/QtGui.framework
        strawberry.app/Contents/Frameworks/QtGui.framework
        strawberry.app/Contents/Frameworks/QtGui.framework/Resources
        strawberry.app/Contents/Frameworks/QtGui.framework/Versions
        strawberry.app/Contents/Frameworks/QtGui.framework/Versions/A
        strawberry.app/Contents/Frameworks/QtGui.framework/Versions/A/Resources
        strawberry.app/Contents/Frameworks/QtGui.framework/Versions/A/Resources/Info.plist
        strawberry.app/Contents/Frameworks/QtGui.framework/Versions/A/QtGui
        strawberry.app/Contents/Frameworks/QtGui.framework/Versions/Current
        strawberry.app/Contents/Frameworks/QtGui.framework/QtGui
        

        This is Qt 6.5.2 built from source on macOS Ventura.

        SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi,

        Did you run macdeployqt to setup your app 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

        Jonas KvingeJ 2 Replies Last reply
        0
        • SGaistS SGaist

          Hi,

          Did you run macdeployqt to setup your app bundle content ?

          Jonas KvingeJ Offline
          Jonas KvingeJ Offline
          Jonas Kvinge
          wrote on last edited by
          #3

          @SGaist Yes, the errors occurs after it finishes signing, so it's the codesign verify command that fails in macdeployqt, same thing happens when running the command manually as shown above.

          1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            Did you run macdeployqt to setup your app bundle content ?

            Jonas KvingeJ Offline
            Jonas KvingeJ Offline
            Jonas Kvinge
            wrote on last edited by
            #4

            @SGaist

            Found the issue. mcdeployqt was using @loader_path's instead of @rpath's when the executable parameter was used and wasn't handling the libraries with @loader_path's when signing. Fix here: https://codereview.qt-project.org/c/qt/qtbase/+/511503

            SGaistS 1 Reply Last reply
            1
            • SGaistS SGaist has marked this topic as solved on
            • Jonas KvingeJ Jonas Kvinge

              @SGaist

              Found the issue. mcdeployqt was using @loader_path's instead of @rpath's when the executable parameter was used and wasn't handling the libraries with @loader_path's when signing. Fix here: https://codereview.qt-project.org/c/qt/qtbase/+/511503

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #5

              @Jonas-Kvinge Thanks for the feedback ! I am sorry, I lost track of this one.

              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

              • Login

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