Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

main executable failed strict validation when signing binary on macOS #128

@jviotti

Description

@jviotti

I'm getting an error when code-signing a binary produced by pkg on macOS:

main executable failed strict validation

I couldn't find much information about this on the web, but some causes can be (from https://developer.apple.com/library/content/technotes/tn2206/_index.html#//apple_ref/doc/uid/DTS40007919-CH1-TNTAG309):

  • Your Mach-O executable does not conform to modern Mach-O layout rules
  • You may be using a third party development product that hasn't been brought up to date, or post-processed your file in unsupported ways

Do you know thay may be causing this? codesign succeeds with other binaries.

Steps to reproduce:

git clone https://github.com/resin-io/etcher
cd etcher
make cli-develop
pkg --output etcher -t node6-macos-x64 lib/cli/etcher.js
codesign --sign "<identity>" -fv etcher

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions