Search Unity

Question Apple Silicon Build Crashes on Startup - Code Signature Invalid?

Discussion in 'macOS' started by JudahMantell, Jun 2, 2023.

  1. JudahMantell

    JudahMantell

    Joined:
    Feb 28, 2017
    Posts:
    476
    Hi, I'm having a problem where when I try to build for Apple Silicon (from an M1 Macbook Air) the app crashes immediately (not even showing on the dock) and opens an error window with the following message:

    Code (csharp):
    1.  
    2. Translated Report (Full Report Below)
    3. -------------------------------------
    4.  
    5. Incident Identifier: 28E005DB-5A30-48E4-B8E8-5969849F95D7
    6. CrashReporter Key:   E42E9453-BAF5-6ED9-DEE9-6F6070627161
    7. Hardware Model:      MacBookAir10,1
    8. Process:             SceneForge Studio [49583]
    9. Path:                /Users/USER/Documents/*/APPNAME.app/Contents/MacOS/APPFOLDER
    10. Identifier:          IDENTIFIER
    11. Version:             0.9.0 (1)
    12. Code Type:           ARM-64 (Native)
    13. Role:                Default
    14. Parent Process:      launchd [1]
    15. Coalition:           IDENTIFIER [299317]
    16.  
    17. Date/Time:           2023-06-02 11:57:11.8706 -0400
    18. Launch Time:         2023-06-02 11:57:11.6122 -0400
    19. OS Version:          macOS 12.4 (21F79)
    20. Release Type:        User
    21. Report Version:      104
    22.  
    23. Exception Type:  EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
    24. Exception Subtype: UNKNOWN_0x32 at 0x00000001009c0000
    25. Exception Codes: 0x0000000000000032, 0x00000001009c0000
    26. VM Region Info: 0x1009c0000 is in 0x1009c0000-0x1009c4000;  bytes after start: 0  bytes before end: 16383
    27.       REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
    28.       UNUSED SPACE AT START
    29. --->  mapped file                 1009c0000-1009c4000    [   16K] r-x/r-x SM=COW  ...t_id=dccd5653
    30.       mapped file                 1009c4000-1009c8000    [   16K] rw-/rw- SM=COW  ...t_id=dccd5653
    31. Exception Note:  EXC_CORPSE_NOTIFY
    32. Termination Reason: CODESIGNING 2
    33.  
    34. Highlighted by Thread:  0
    35.  
    36. Backtrace not available
    37.  
    38. No thread state (register information) available
    39.  
    40. Binary Images:
    41.                0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
    42.  
    43. Error Formulating Crash Report:
    44. _dyld_process_info_create failed with 6
    45. dyld_process_snapshot_get_shared_cache failed
    46. Failed to create CSSymbolicatorRef - corpse still valid ¯\_(ツ)_/¯
    47. thread_get_state(PAGEIN) returned 0x10000003: (ipc/send) invalid destination port
    48. thread_get_state(EXCEPTION) returned 0x10000003: (ipc/send) invalid destination port
    49. thread_get_state(FLAVOR) returned 0x10000003: (ipc/send) invalid destination port
    50.  
    51. EOF
    52.  
    53. -----------
    54. Full Report
    55. -----------
    56.  
    57. {"app_name":"SceneForge Studio","timestamp":"2023-06-02 11:57:16.00 -0400","app_version":"0.9.0","slice_uuid":"0ba49fbc-e15d-3bf4-9b0d-e9021b6b82b1","build_version":"1","platform":0,"bundleID":"IDENTIFIER","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.4 (21F79)","incident_id":"28E005DB-5A30-48E4-B8E8-5969849F95D7","name":"APP NAME"}
    58. {
    59.   "uptime" : 2200000,
    60.   "procLaunch" : "2023-06-02 11:57:11.6122 -0400",
    61.   "procRole" : "Default",
    62.   "version" : 2,
    63.   "userID" : 501,
    64.   "deployVersion" : 210,
    65.   "modelCode" : "MacBookAir10,1",
    66.   "procStartAbsTime" : 53570148608914,
    67.   "coalitionID" : 299317,
    68.   "osVersion" : {
    69.     "train" : "macOS 12.4",
    70.     "build" : "21F79",
    71.     "releaseType" : "User"
    72.   },
    73.   "captureTime" : "2023-06-02 11:57:11.8706 -0400",
    74.   "incident" : "28E005DB-5A30-48E4-B8E8-5969849F95D7",
    75.   "bug_type" : "309",
    76.   "pid" : 49583,
    77.   "procExitAbsTime" : 53570149935734,
    78.   "translated" : false,
    79.   "cpuType" : "ARM-64",
    80.   "procName" : "APP NAME",
    81.   "procPath" : "\/Users\/USER\/Documents\/*\/APPNAME.app\/Contents\/MacOS\/APPNAME",
    82.   "bundleInfo" : {"CFBundleShortVersionString":"0.9.0","CFBundleVersion":"1","CFBundleIdentifier":"IDENTIFIER"},
    83.   "storeInfo" : {"deviceIdentifierForVendor":"8A9CC859-CE0E-50C8-BFDA-58E4ECD6E43C","thirdParty":true},
    84.   "parentProc" : "launchd",
    85.   "parentPid" : 1,
    86.   "coalitionName" : "IDENTIFIER",
    87.   "crashReporterKey" : "E42E9453-BAF5-6ED9-DEE9-6F6070627161",
    88.   "wakeTime" : 12811,
    89.   "sleepWakeUUID" : "3EDD02A7-CB9C-45DC-8534-CF6C3A20082A",
    90.   "sip" : "enabled",
    91.   "vmRegionInfo" : "0x1009c0000 is in 0x1009c0000-0x1009c4000;  bytes after start: 0  bytes before end: 16383\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  mapped file                 1009c0000-1009c4000    [   16K] r-x\/r-x SM=COW  ...t_id=dccd5653\n      mapped file                 1009c4000-1009c8000    [   16K] rw-\/rw- SM=COW  ...t_id=dccd5653",
    92.   "isCorpse" : 1,
    93.   "exception" : {"codes":"0x0000000000000032, 0x00000001009c0000","rawCodes":[50,4305190912],"type":"EXC_BAD_ACCESS","signal":"SIGKILL (Code Signature Invalid)","subtype":"UNKNOWN_0x32 at 0x00000001009c0000"},
    94.   "termination" : {"namespace":"CODESIGNING","flags":0,"code":2},
    95.   "vmregioninfo" : "0x1009c0000 is in 0x1009c0000-0x1009c4000;  bytes after start: 0  bytes before end: 16383\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  mapped file                 1009c0000-1009c4000    [   16K] r-x\/r-x SM=COW  ...t_id=dccd5653\n      mapped file                 1009c4000-1009c8000    [   16K] rw-\/rw- SM=COW  ...t_id=dccd5653",
    96.   "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":24},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
    97.   "usedImages" : [
    98.   {
    99.     "size" : 0,
    100.     "source" : "A",
    101.     "base" : 0,
    102.     "uuid" : "00000000-0000-0000-0000-000000000000"
    103.   }
    104. ],
    105.   "legacyInfo" : {
    106.   "threadHighlighted" : 0
    107. },
    108.   "trialInfo" : {
    109.   "rollouts" : [
    110.     {
    111.       "rolloutId" : "61af99aeda72d16a4beb7756",
    112.       "factorPackIds" : {
    113.  
    114.       },
    115.       "deploymentId" : 240000409
    116.     },
    117.     {
    118.       "rolloutId" : "5fb4245a1bbfe8005e33a1e1",
    119.       "factorPackIds" : {
    120.  
    121.       },
    122.       "deploymentId" : 240000021
    123.     }
    124.   ],
    125.   "experiments" : [
    126.     {
    127.       "treatmentId" : "c28e4ee6-1b08-4f90-8e05-2809e78310a3",
    128.       "experimentId" : "6317d2003d24842ff850182a",
    129.       "deploymentId" : 400000012
    130.     },
    131.     {
    132.       "treatmentId" : "6dd670af-0633-45e4-ae5f-122ae4df02be",
    133.       "experimentId" : "64406ba83deb637ac8a04419",
    134.       "deploymentId" : 900000005
    135.     }
    136.   ]
    137. },
    138.   "reportNotes" : [
    139.   "_dyld_process_info_create failed with 6",
    140.   "dyld_process_snapshot_get_shared_cache failed",
    141.   "Failed to create CSSymbolicatorRef - corpse still valid ¯\\_(ツ)_\/¯",
    142.   "thread_get_state(PAGEIN) returned 0x10000003: (ipc\/send) invalid destination port",
    143.   "thread_get_state(EXCEPTION) returned 0x10000003: (ipc\/send) invalid destination port",
    144.   "thread_get_state(FLAVOR) returned 0x10000003: (ipc\/send) invalid destination port"
    145. ]
    146. }
    147.  
    148. Model: MacBookAir10,1, BootROM 7459.121.3, proc 8:4:4 processors, 8 GB, SMC
    149. Graphics: Apple M1, Apple M1, Built-In
    150. Display: Color LCD, 2560 x 1600 Retina, Main, MirrorOff, Online
    151. Memory Module: LPDDR4
    152. AirPort: Wi-Fi, wl0: Mar 23 2022 19:57:59 version 18.60.27.0.7.8.129 FWID 01-570be953
    153. Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
    154. Network Service: Wi-Fi, AirPort, en0
    155. USB Device: USB31Bus
    156. USB Device: USB31Bus
    157. Thunderbolt Bus: MacBook Air, Apple Inc.

    I was using 2021.3.26f (the last 2021 LTS version), but then updated to 2022 LTS thinking that this was fixed, but it's still happening.

    I see that it has to do with the code signature, but I believe the app should run on my dev machine even without the notarization?

    This happens when I build for Apple Silicon, or a Universal binary. It does not happen with an Intel build.

    Any help would be appreciated as this is for my work and there's some pressure to get the Mac build up and running o_O
    Thanks!
     
    Last edited: Jun 3, 2023