Skip to content

For Apple M1, binary substitution breaks codesign #5650

@bobot

Description

@bobot

In #4389 and #4135 problem between dune substitutions and codesign has been raised. But unfortunately both times another bug was also the culprit. It is time for dune to call codesign -s - $binary automatically after substitution.

  • applying only for architecture = arm64 and system = macosx

However I don't know on which files it should be applied:

  • should we do it only for substituted files for which the source is verfied (codesign -v <path>)
  • for all executables?

Also the CI doesn't check that? Could we test on M1?

@correnson

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions