Changes between Initial Version and Version 1 of Ticket #4663, comment 21


Ignore:
Timestamp:
Oct 27, 2021, 8:11:07 PM (4 years ago)
Author:
Tom Goddard

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4663, comment 21

    initial v1  
    11Native apps for the Apple M1 CPU are required to be signed.  An adhoc signature can be used that has no certificate and the compiler adds this by default, apparently inside the executable.  The codesign command reveals this, on my ARM64 development build:
    22
     3
     4{{{
    35codesign -dvvv ChimeraX.app
     6Executable=/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/MacOS/ChimeraX
     7Identifier=ChimeraX
     8Format=app bundle with Mach-O thin (arm64)
     9CodeDirectory v=20400 size=513 flags=0x20002(adhoc,linker-signed) hashes=13+0 location=embedded
     10Hash type=sha256 size=32
     11CandidateCDHash sha256=7ee198a5f3d238248eab5b3b1b5cba630a6baece
     12CandidateCDHashFull sha256=7ee198a5f3d238248eab5b3b1b5cba630a6baece0e9e89b409ca53a8b529aa40
     13Hash choices=sha256
     14CMSDigest=7ee198a5f3d238248eab5b3b1b5cba630a6baece0e9e89b409ca53a8b529aa40
     15CMSDigestType=2
     16CDHash=7ee198a5f3d238248eab5b3b1b5cba630a6baece
     17Signature=adhoc
     18Info.plist=not bound
     19TeamIdentifier=not set
     20Sealed Resources=none
     21Internal requirements=none
     22}}}
     23
    424
    525If I download a dmg with this adhoc signed app onto an M1 Mac I can copy the app to the Desktop but when I run it is says it is "damaged" and offers only to move it to the trash.  To get it to run I can remove the HFS file system attributes from the dmg with