Skip to content

mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64' #371

@huxinhai

Description

@huxinhai

Environment

  • Electron version: X.Y.Z
  • node-datachannel version: X.Y.Z
  • macOS version: 13.x
  • Using GitHub Actions Workflows to build the Electron app
  • Issue occurs on Intel Macs
  • Works fine on Apple Silicon Macs

Steps to Reproduce

  1. Build the Electron app via GitHub Actions Workflows
  2. The app depends on node-datachannel native module
  3. Run the .app on an Intel Mac
  4. See the architecture mismatch error

Expected Behavior

I would like a reliable solution so that the Electron app built via GitHub Actions can run on Intel macOS with node-datachannel successfully loaded.

Additional Context

  • The build workflow uses electron-builder / electron-packager
  • Is it necessary to rebuild node-datachannel specifically for Intel architecture in the workflow?

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