Unable to run macOS app on MacBook Air M1 [Code Signature Invalid]

Hello,

I was running macOS app on old iMac. But when I tried to run the same code on MacBook Air M1 on Monterey I receive following error. I tried searching solution everywhere, but no solution has been found. Please help if anyone able to resolve this issue.


Translated Report (Full Report Below)

Incident Identifier: 656E6540-596D-4ACC-98E1-3B3339992FF0 CrashReporter Key: 8EC66A36-1996-E656-76D7-FE1144ACDA5D Hardware Model: MacBookAir10,1 Process: ThinkBizz Business Dynamics [16320] Path: /Users/USER/Library/Developer/Xcode/DerivedData/ThinkBizz_Business_Dynamics-byvoiahkkwoisueapzfaqupjnobh/Build/Products/Debug/ThinkBizz Business Dynamics.app/Contents/MacOS/ThinkBizz Business Dynamics Identifier: com.ThinkBizz.TBD Version: 1.0 (1) Code Type: X86-64 (Native) Role: Background Parent Process: launchd [1] Coalition: com.ThinkBizz.TBD [2258]

Date/Time: 2022-01-14 15:28:28.9350 +0530 Launch Time: 2022-01-14 15:28:28.8352 +0530 OS Version: macOS 12.1 (21C52) Release Type: User Report Version: 104

Exception Type: EXC_CRASH (SIGKILL (Code Signature Invalid)) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: CODESIGNING 1

Triggered by Thread: 0

Thread 0 Crashed: 0 0x7ff7ffd5ba2c 0x7ff7ffd58000 + 14892 Binary Images: 0x7ff7ffd58000 - 0x7ff7ffd87fff (*) <21c1e0c9-a36e-3e4b-a12b-1bf54ce4403e> ???

Error Formulating Crash Report: dyld_process_snapshot_get_shared_cache failed

EOF

This Exception Type:

Exception Type: EXC_CRASH (SIGKILL (Code Signature Invalid)) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: CODESIGNING 1

Is exactly what it sounds like, a code signature crash for either an entitlements mis-match or some other issue with a malformed signature. Typically looking at the crash logs do not help in this situation and the signature nees to be validated. Checkout Quinn's Signing a Mac Product For Distribution for more info here.

If that does not workout, make sure that you are creating a Universal Build when running on an M1 too. Typically it will not crash this way if you have only built for x86_64 but it's import to check this out.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com

What Matt said plus…

If you’re going to post a crash report, please post the whole thing. See my instructions in Posting a Crash Report.

What does this report for your app:

% codesign -d -vvv --entitlements :- "/path/to/ThinkBizz Business Dynamics.app"

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Unable to run macOS app on MacBook Air M1 [Code Signature Invalid]
 
 
Q