Skip to content

macOS code signing fails due to finding wrong codesign on PATH #7997

@dbrnz

Description

@dbrnz
  • Electron-Builder Version: 24.11.0
  • Node Version: v21.5.0
  • Electron Version: 28.1.3
  • Electron Type (current, beta, nightly): current
  • Target: macOS

Homebrew's miniforge package includes a codesign:

$ which codesign
/opt/homebrew/Caskroom/miniforge/base/bin/codesign

Unsurprising this fails when electron-builder uses it for code signing. The error message is:

The following arguments were not expected: --options --timestamp

A fix is to adjust PATH so that /usr/bin is ahead of /opt/homebrew/Caskroom/miniforge/base/bin.

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