Skip to content

ghostty-bin: fails to launch on aarch64-darwin with code signature invalid since 1.3.0 #501200

@tolkonepiu

Description

@tolkonepiu

Nixpkgs version

  • Unstable (26.05)

Describe the bug

ghostty-bin stopped launching correctly on macOS starting with version 1.3.0. The same issue is still present in 1.3.1.

On launch, macOS immediately terminates the app with a code signing error:

EXC_CRASH (SIGKILL (Code Signature Invalid))
Termination Reason: Namespace CODESIGNING, Code 4, Launch Constraint Violation

This appears to affect the packaged .app bundle used by ghostty-bin on Apple Silicon macOS.

Steps to reproduce

  1. Install or update ghostty-bin to version 1.3.0 or 1.3.1 from Nixpkgs on macOS.
  2. Launch Ghostty from the application bundle or via the generated app entry.
  3. Observe that the application does not start.
  4. macOS immediately kills the process with a code signing / launch constraint violation.

Expected behaviour

Ghostty should launch normally on macOS, as it did before version 1.3.0.

Screenshots

Image

Relevant log output

Process:             ghostty [5171]
Path:                /Users/USER/*/Ghostty.app/Contents/MacOS/ghostty
Identifier:          com.mitchellh.ghostty
Version:             1.3.1 (15212)
Code Type:           ARM-64 (Native)
Hardware Model:      Mac16,8
OS Version:          macOS 26.3.1 (25D2128)

Exception Type:    EXC_CRASH (SIGKILL (Code Signature Invalid))
Exception Codes:   0x0000000000000000, 0x0000000000000000

Termination Reason:  Namespace CODESIGNING, Code 4, Launch Constraint Violation

Binary Images:
       0x1063ac000 -        0x10644bfff dyld_path_missing (*) <044cd67e-3a0a-3ca4-8bb3-a9687d5328fe> /dyld_path_missing
       0x104dd4000 -        0x105b7ffff main_executable_path_missing (*) <c87d5573-6aeb-3a18-a0c7-240645cd8b37> /main_executable_path_missing

Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed

Additional context

A previous ghostty-bin version worked correctly on the same machine before upgrading.
Reinstalling the package did not resolve the issue.

System metadata

 - system: `"aarch64-darwin"`
 - host os: `Darwin 25.3.0, macOS 26.3.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Determinate Nix 3.17.0) 2.33.3`
 - nixpkgs: `/nix/store/s0bdxxy4gki016irflyqlxy5mzr96kin-source`

Are you using nix-darwin?

Yes, I am using nix-darwin.

Notify maintainers

@Enzime


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: darwinRunning or building packages on Darwin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions