Skip to content

Bug: App fails to launch on macOS 26 due to code signature invalid #3740

@superbonaci

Description

@superbonaci

SuperTux Version

0.7.0

System Information

macOS 16 ARM64

Expected Behavior

Maybe signature, or add to README.md

Actual Behavior

Platform: macOS 26.3.1 (25D2128), Apple M4 (ARM64)
SuperTux version: v0.7.0 (SuperTux-v0.7.0-Darwin-arm64.dmg)

Bug: App fails to launch on macOS 26 due to code signature invalid

After installing from the official DMG, SuperTux crashes immediately on launch with a code signing error. The app never opens.

Crash exception:

Exception Type:   EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
Termination Reason: Namespace CODESIGNING, Code 2, Invalid Page

This appears to be caused by stricter code signing validation in macOS 26. The bundled dylibs in Contents/Resources/Frameworks/ fail signature validation, preventing dyld from loading the app at all.

Workaround

The following Terminal commands fix the issue by stripping quarantine attributes and re-signing the bundle with a local ad-hoc signature.:

sudo xattr -cr /Applications/SuperTux.app
sudo find /Applications/SuperTux.app -name "*.dylib" -exec codesign --force --sign - {} \;
sudo codesign --force --sign - /Applications/SuperTux.app/Contents/Resources/bin/supertux2
sudo codesign --force --deep --sign - /Applications/SuperTux.app

Note: sudo is required because several dylibs in the bundle are root-owned and cannot be modified by a regular user.

Suggested fix

The DMG release should be properly signed and notarized with an Apple Developer ID so that macOS accepts it without manual intervention. Or the build pipeline could include an ad-hoc re-signing step, and the README/release notes should document this workaround for users on macOS 26+.

Steps To Reproduce Actual Behavior

Run as is.

Additional Information

No response

Guidelines For Reporting Issues

  • I have read https://github.com/SuperTux/supertux/blob/master/CONTRIBUTING.md#bug-reports.
  • I have verified this isn't an issue that's already been reported.
  • I have verified this isn't a discussion, or an issue about a crash or a feature request, but rather an actual bug ─ that is, the game did something not intended.
  • I have verified this issue is not about wrong translations (use Transifex for those), or anything unsupported (e.g. third-party add-ons).
  • In this report, I have only included details about one (1) bug.
  • If I make a mistake while submitting this report, I agree to use the "Edit" feature to correct it, instead of closing this issue and opening a new one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions