Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to Launch with MacOS Sequoia (15.0.1) #462

Open
cgaskins-tx opened this issue Oct 6, 2024 · 2 comments
Open

Fail to Launch with MacOS Sequoia (15.0.1) #462

cgaskins-tx opened this issue Oct 6, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@cgaskins-tx
Copy link

Was previously running MacOS Sonoma (latest version) along with the latest version of Android Messages Desktop installed via BREW. I upgraded to Mac OS Sequoia (15.0.1) today. Now Android Messages Desktop fails to launch.

SCR-2024-10-06-17-06-39-2

Mac OS Problem Report Text


Translated Report (Full Report Below)

Incident Identifier: 037711DF-0024-472A-8B63-69F5B652E429
CrashReporter Key: F5ABBB4A-FA58-6F77-1596-C6FF6AFE82F1
Hardware Model: iMac19,1
Process: Android Messages [6867]
Path: /Applications/Android Messages.app/Contents/MacOS/Android Messages
Identifier: pw.kmr.amd
Version: 5.4.5 (5.4.5)
Code Type: X86-64 (Native)
Role: Default
Parent Process: launchd [1]
Coalition: pw.kmr.amd [6832]

Date/Time: 2024-10-06 16:54:08.5596 -0500
Launch Time: 2024-10-06 16:54:08.5499 -0500
OS Version: macOS 15.0.1 (24A348)
Release Type: User
Report Version: 104

Exception Type: EXC_CRASH (SIGKILL (Code Signature Invalid))
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: CODESIGNING 4 Launch Constraint Violation

Triggered by Thread: 0

Thread 0 Crashed:
0 dyld_path_missing 0x10de3d000 _dyld_start + 0
1 ??? 0x1 ???

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000
rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x00007ff7bec6ebd0
r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000
r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000
rip: 0x000000010de3d000 rfl: 0x0000000000000200 cr2: 0x0000000000000000

Logical CPU: 0
Error Code: 0x00000000
Trap Number: 0

Binary Images:
0x10de38000 - 0x10dec4fff dyld_path_missing () <69c73748-37ae-3a6f-83af-690645c3da75> /dyld_path_missing
0x101291000 - 0x101292fff main_executable_path_missing (
) <4c4c446a-5555-3144-a1ed-284c4433d4dd> /main_executable_path_missing
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed

EOF


Full Report

{"app_name":"Android Messages","timestamp":"2024-10-06 16:54:08.00 -0500","app_version":"5.4.5","slice_uuid":"4c4c446a-5555-3144-a1ed-284c4433d4dd","build_version":"5.4.5","platform":0,"bundleID":"pw.kmr.amd","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 15.0.1 (24A348)","roots_installed":0,"name":"Android Messages","incident_id":"037711DF-0024-472A-8B63-69F5B652E429"}
{
"uptime" : 1600,
"procRole" : "Default",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "iMac19,1",
"coalitionID" : 6832,
"osVersion" : {
"train" : "macOS 15.0.1",
"build" : "24A348",
"releaseType" : "User"
},
"captureTime" : "2024-10-06 16:54:08.5596 -0500",
"codeSigningMonitor" : 0,
"incident" : "037711DF-0024-472A-8B63-69F5B652E429",
"pid" : 6867,
"cpuType" : "X86-64",
"roots_installed" : 0,
"bug_type" : "309",
"procLaunch" : "2024-10-06 16:54:08.5499 -0500",
"procStartAbsTime" : 1651278757905,
"procExitAbsTime" : 1651288359759,
"procName" : "Android Messages",
"procPath" : "/Applications/Android Messages.app/Contents/MacOS/Android Messages",
"bundleInfo" : {"CFBundleShortVersionString":"5.4.5","CFBundleVersion":"5.4.5","CFBundleIdentifier":"pw.kmr.amd"},
"storeInfo" : {"deviceIdentifierForVendor":"263C54F3-73C6-5811-B8B1-6FB7463F9A40","thirdParty":true},
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "pw.kmr.amd",
"crashReporterKey" : "F5ABBB4A-FA58-6F77-1596-C6FF6AFE82F1",
"codeSigningID" : "",
"codeSigningTeamID" : "",
"codeSigningFlags" : 16777216,
"codeSigningValidationCategory" : 0,
"codeSigningTrustLevel" : 4294967295,
"bootSessionUUID" : "8F1A2DF8-18CB-4EA0-A5A4-E6725B71102D",
"sip" : "enabled",
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGKILL (Code Signature Invalid)"},
"termination" : {"flags":66,"code":4,"namespace":"CODESIGNING","indicator":"Launch Constraint Violation"},
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":59054,"threadState":{"r13":{"value":0},"rax":{"value":0},"rflags":{"value":512},"cpu":{"value":0},"r14":{"value":0},"rsi":{"value":0},"r8":{"value":0},"cr2":{"value":0},"rdx":{"value":0},"r10":{"value":0},"r9":{"value":0},"r15":{"value":0},"rbx":{"value":0},"trap":{"value":0},"err":{"value":0},"r11":{"value":0},"rip":{"value":4528001024,"matchesCrashFrame":1},"rbp":{"value":0},"rsp":{"value":140702034357200},"r12":{"value":0},"rcx":{"value":0},"flavor":"x86_THREAD_STATE","rdi":{"value":0}},"frames":[{"imageOffset":20480,"symbol":"_dyld_start","symbolLocation":0,"imageIndex":0},{"imageOffset":1,"imageIndex":2}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "x86_64",
"base" : 4527980544,
"size" : 577536,
"uuid" : "69c73748-37ae-3a6f-83af-690645c3da75",
"path" : "/dyld_path_missing",
"name" : "dyld_path_missing"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4314435584,
"size" : 8192,
"uuid" : "4c4c446a-5555-3144-a1ed-284c4433d4dd",
"path" : "/main_executable_path_missing",
"name" : "main_executable_path_missing"
},
{
"size" : 0,
"source" : "A",
"base" : 0,
"uuid" : "00000000-0000-0000-0000-000000000000"
}
],
"vmSummary" : "ReadOnly portion of Libraries: Total=868K resident=0K(0%) swapped_out_or_unallocated=868K(100%)\nWritable regions: Total=8200K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=8200K(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nSTACK GUARD 56.0M 1 \nStack 8192K 1 \nVM_ALLOCATE 4K 1 \n__DATA 16K 3 \n__DATA_CONST 24K 1 \n__DATA_DIRTY 8K 2 \n__LINKEDIT 308K 3 \n__TEXT 572K 2 \n__TPRO_CONST 276K 1 \nmapped file 4.3G 26 \nshared memory 8K 2 \n=========== ======= ======= \nTOTAL 4.4G 43 \n",
"legacyInfo" : {
"threadTriggered" : {

}
},
"logWritingSignature" : "732e72dc6b9c84ac2e82c2780cfefbe721778a58",
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "632c763c58740028737bfdd2",
"factorPackIds" : {
"SIRI_DIALOG_ASSETS" : "64a57d23fa6fd41b2353e2ae"
},
"deploymentId" : 240000034
},
{
"rolloutId" : "64c025b28b7f0e739e4fbe58",
"factorPackIds" : {

  },
  "deploymentId" : 240000019
}

],
"experiments" : [
{
"treatmentId" : "c47ab4cc-c9c3-4b5d-a87c-e2433ce02597",
"experimentId" : "6639bc6ba73d460582162323",
"deploymentId" : 400000006
},
{
"treatmentId" : "45f4e2a5-551b-4bc2-a2dc-19c244dda8f8",
"experimentId" : "6643969b3099cf28e049862f",
"deploymentId" : 400000007
}
]
},
"reportNotes" : [
"dyld_process_snapshot_get_shared_cache failed"
]
}

Model: iMac19,1, BootROM 2069.0.0.0.0, 6 processors, 6-Core Intel Core i5, 3 GHz, 40 GB, SMC 2.46f12
Graphics: Radeon Pro 570X, Radeon Pro 570X, PCIe, 4 GB
Display: iMac, Retina 5K (5120 x 2880), Main, MirrorOff, Online
Display: ASUS PB278, 2560 x 1440 (QHD/WQHD - Wide Quad High Definition), MirrorOff, Online
Memory Module: BANK 0/ChannelA-DIMM0, 4 GB, DDR4, 2667 MHz, SK Hynix, HMA851S6CJR6N-VK
Memory Module: BANK 1/ChannelA-DIMM1, 16 GB, DDR4, 2667 MHz, 0000, -
Memory Module: BANK 2/ChannelB-DIMM0, 4 GB, DDR4, 2667 MHz, SK Hynix, HMA851S6CJR6N-VK
Memory Module: BANK 3/ChannelB-DIMM1, 16 GB, DDR4, 2667 MHz, 0000, -
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x7BF), wl0: Jul 26 2024 22:09:35 version 9.30.514.0.32.5.94 FWID 01-47278712
AirPort:
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Network Service: HERO9, Ethernet, en4
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: APPLE HDD ST1000DM003, 1 TB
USB Device: USB31Bus
USB Device: USB3.1 Hub
USB Device: USB3.1 Hub
USB Device: USB3.1 Hub
USB Device: USB Storage
USB Device: Mercury Elite Pro USB Hub
USB Device: Elite Pro USB
USB Device: FaceTime HD Camera (Built-in)
USB Device: USB C Video Adaptor
USB Device: Logitech Webcam C930e
USB Device: USB2.1 Hub
USB Device: USB2.1 Hub
USB Device: HERO9
USB Device: Jabra SPEAK 510 USB
USB Device: USB2.1 Hub
USB Device: Mercury Elite Pro USB Hub
USB Device: Elite Pro mini
Thunderbolt Bus: iMac, Apple Inc., 47.5

@cgaskins-tx cgaskins-tx added the bug Something isn't working label Oct 6, 2024
@philogit
Copy link

philogit commented Oct 16, 2024

Solution: Fixing Code Signing Issues in Android Messages on macOS Sequoia

The following solution provided by chatGPT allowed the program to run for me under Sequoia 15.0.1.

Jump to ✍️ Sign the App with an Ad-Hoc Signature for a step-by-step fix.

Crash Report Summary

The issue arises from a code signing error, which prevents Android Messages from launching.

Key Issues Identified:

  • Termination Reason:
    CODESIGNING 4 Launch Constraint Violation
    The operating system rejected the app due to an invalid or missing code signature.
  • Exception:
    EXC_CRASH (SIGKILL (Code Signature Invalid))
    macOS terminated the application because the app’s code signature could not be verified.

Steps to Diagnose the Problem

Verify Code Signing: Open Terminal and run:

codesign -vvv /Applications/Android\ Messages.app

The output will indicate the cause of the failure. If the code signature is missing, you will see:
/Applications/Android Messages.app: code object is not signed at all \ In architecture: x86_64

This confirms that the app is not signed, which is why macOS refuses to launch it.


Solution: Manually Sign the App (Temporary / Local Fix)

✍️ Sign the App with an Ad-Hoc Signature

Open Terminal and run:

sudo codesign --force --deep --sign - /Applications/Android\ Messages.app

This command forces the app to be signed with a temporary (ad-hoc) signature, authorizing the app for local use on your own machine only.

✅ Verify the Code Signature

After signing, ensure the signature is now valid by running:

codesign -vvv /Applications/Android\ Messages.app

🚀 Try Running the App Again.


Why the App Crashed Instead of Showing the Usual Warning

Normally, macOS gives a warning when an app is untrusted, allowing the user to go to System Settings > Privacy and Security to allow the app. However, in this case, the app crashed instead of triggering that warning because the app’s code signature was missing or invalid. Here’s why:

  • Gatekeeper Warning (for Untrusted Apps):
    macOS gives a warning when the app is unnotarized but still has a valid code structure. This can usually be resolved by allowing the app in Privacy and Security.
  • Immediate Crash (for Invalid Code Signing):
    In this case, the app’s code signature was not present at all or was invalid, causing macOS to treat it as potentially corrupted or malicious. As a result, the system terminated the app immediately (SIGKILL), instead of giving the usual warning.
  • Stricter Security in macOS Sequoia:
    macOS Sequoia has stricter enforcement for code signatures, and apps with broken or missing signatures are not given the option to be trusted manually. Instead, macOS kills the process to ensure security.

This is why the app crashed instead of allowing you to bypass the security warning.

Local Signing vs. Distribution Signing

By signing the app ad-hoc, in the workaround described above, without an Apple Developer Program membership, you are authorizing the app for local use on your own machine.

However, in order to distribute the app to others or make sure it runs smoothly across all macOS versions and machines (without triggering crashes or Gatekeeper warnings), the developer would need to obtain a Developer ID certificate and notarization, both of which require membership in the Apple Developer Program.

@cgaskins-tx
Copy link
Author

Steps above worked perfectly local signing. Thank you for the tip. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants