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

Qt app compiled for M1 Apple marked as damaged

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P5: Not important
    • None
    • 5.15.2
    • Build System
    • None
    • Apple Mac Mini M1
    • macOS

    Description

      Using an m1 Mini I've built Qt 5.15 and everything's good except for two issues:

      First, when I qmake a a pro file from the command-line the resulting Makefile has EXPORT_VALID_ARCH = x86_64. I did compile Qt with QMAKE_APPLE_DEVICE_ARCHS=arm64.

      If I manually change the Makefile to EXPORT_VALID_ARCH = arm64 the compile completes w/o errors giving me an arm64 binary.

      Next, when the app packaged as a zip or dmg is downloaded from my website It's marked as damaged and macOS advises its deletion. This can be fixed with "xattr -cr myapp.app". After this the program runs normally.

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            jedevnull Jed Evnull
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes