Skip to content

Notarization fails for MATLAB-compiled app for Mac due to embedded bundle.zip structure #1

@keitaroyamada

Description

@keitaroyamada

Description

When submitting a MATLAB-compiled .app for notarization on macOS, the process fails with errors such as:

  • “The executable does not have the hardened runtime enabled”

  • “The signature of the binary is invalid”

  • “unsealed contents present in the bundle root”

The failure seems related to the way MATLAB Compiler packages the runtime:

  • The outer application (MyApp.app) includes Contents/Resources/bundle.zip.

  • Inside this zip is another .app (MyDesktopApplication.app) with its own executables.

  • Apple’s notarization service expands bundle.zip and checks binaries inside it.

  • Since these are not pre-signed or hardened, notarization rejects the archive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions