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

SIGABRT when loading signed app on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.2
    • None
    • macOS

    Description

      I'm not sure this is a macdeployqt issue, but it rather feels like it is.

      When I sign an application I believe macdeployqt re-signs all the libraries that get put into Contents/Frameworks directory. (Should it actually be doing that - surely they already have valid signatures?)

      When I try to load an application that I have signed, I get a SIGABRT and the following is reported (e.g.) for the library it's attempting at the time (which might be libomp.dylib or Contents/Frameworks/QtCharts.framework/Versions/A/QtCharts) :

      -------------------------------------
      Translated Report (Full Report Below)
      -------------------------------------
      
      Process:               DeepSkyStacker [18607]
      Path:                  /Users/USER/*/DeepSkyStacker.app/Contents/MacOS/DeepSkyStacker
      Identifier:            com.github.deepskystacker
      Version:               6.1 (6.1.0)
      Code Type:             ARM-64 (Native)
      Parent Process:        launchd [1]
      User ID:               501
      
      Date/Time:             2025-04-22 08:43:21.0596 +0100
      OS Version:            macOS 15.4.1 (24E263)
      Report Version:        12
      Anonymous UUID:        0FF6C704-6753-4499-FB24-98B69528FDE2
      
      
      Time Awake Since Boot: 2400 seconds
      
      System Integrity Protection: enabled
      
      Dyld Error Message:
        1
      
      Crashed Thread:        0
      
      Exception Type:        EXC_CRASH (SIGABRT)
      Exception Codes:       0x0000000000000000, 0x0000000000000000
      
      Termination Reason:    Namespace DYLD, Code 1 Library missing
      Library not loaded: @executable_path/../Frameworks/libomp.dylib
      Referenced from: <D38ECDB1-E7E2-31A0-9448-6A068BF1AB40> /Users/USER/*/DeepSkyStacker.app/Contents/MacOS/DeepSkyStacker
      Reason: tried: '/Users/amonra/.vs/DSS/Darwin/arm64/Debug/DeepSkyStacker.app/Contents/Frameworks/libomp.dylib' (code signature in <49E7886B-A190-34F4-886B-B6010DF3B4E9> '/Users/amonra/.vs/DSS/Darwin/arm64/Debug/DeepSkyStacker.app/Contents/Frameworks/libomp.dylib' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs)
      (terminated at launch; ignore backtrace)
      
      
      

      I confirm this is Sequoia running an an ARM4

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            perdrix David Partridge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes