Skip to content

Codegen not working on Apple Silicon / M1 without Rosetta #1611

@LinusU

Description

@LinusU

Bug report

The run-bundled-codegen.sh script uses a bundled copy of node which is an Intel binary. This means that it cannot run on the new M1 Macs (without Rosetta), and fails with the following message:

env: node: Bad CPU type in executable

I believe that an easy fix is to upgrade the bundled Node.js version to a universal binary.

Versions

Please fill in the versions you're currently using:

  • apollo-ios SDK version: 0.39.0
  • Xcode version: 12.3
  • Swift version: 5.3.2
  • Package manager: 5.3.0

Steps to reproduce

Run the run-bundled-codegen.sh script on an M1 Mac.

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