codecov/feedback

Codecov uploader fails on Apple ARM64 hardware

Closed this issue ยท 10 comments

Describe the bug
Downloading the recommended mac uploader fails with the following message: bad CPU type in executable

To Reproduce
Steps to reproduce the behavior:

  1. Download mac version of the uploader (tried with v0.6.3 & v0.6.2)
  2. chmod +x uploader
  3. Run with ./uploader in root of project
  4. See error displayed in terminal

Expected behavior
Uploader works like normal

Sytem Info

Software:

    System Software Overview:

      System Version: macOS 13.6 (22G120)
      Kernel Version: Darwin 22.6.0

Hardware:

    Hardware Overview:

      Model Name: MacBook Pro
      Model Identifier: Mac14,6
      Chip: Apple M2 Max
      Total Number of Cores: 12 (8 performance and 4 efficiency)
      Memory: 64 GB
      System Firmware Version: 8422.141.2

@hansjhoffman have you tried downloading the aarch64 version of the uploader here?

I did try as you suggested. Running file codecov-aarch64 prints out codecov-aarch64: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, stripped. Linux binaries are not compatible with the Mac chipset. Same issues even with the latest v0.7.1

@hansjhoffman, I've found that running the macOS x86_64 uploader binary on macOS ARM works when using Rosetta, e.g. like this. That is,

sudo softwareupdate --install-rosetta --agree-to-license
arch -x86_64 codecov <command line arguments>

Has the associated github action been updated?

@hansjhoffman, I've found that running the macOS x86_64 uploader binary on macOS ARM works when using Rosetta, e.g. like this. That is,

sudo softwareupdate --install-rosetta --agree-to-license
arch -x86_64 codecov <command line arguments>

Yeah, thanks, it works: https://github.com/filewatcher/filewatcher/pull/257/files

https://cirrus-ci.com/task/5340143817588736

But we're still waiting for correct ARM build for macOS.

We will be pursuing ARM64 support in our codecov-cli, which will become the default system underpinning the github action in the near future. Therefore, github actions users should see the action work under arm64 in the near future. We will follow up on this ticket when the codecov-cli becomes the default for the action with further instruction about how to have the action work under arm64 (if further action by end users is needed).

We're currently determining if this will work ootb for apple arm64.

Hi everyone

We've released a new version of the codecov action and CLI that adds support for Apple ARM64. Here's a link to our blog outlining the latest update including how to upgrade to the CLI. You can also visit our docs for more detailed information on how to get set up with the CLI, especially if you're not using our Github Action, Bitrise Step or CircleCI orb.

Hi! Am I understand correctly that codecov-cli is a replacement for uploader? In the case that I want to integrate iOS project with codecov. The codecov-cli can also process the resulting bundle from Xcode and upload it to codecov like uploader, right?

@kajornsakp, the cli is a replacement for uploader, correct. The CLI should be able to upload to Codecov like the uploader

The cli has a macos version here that should properly handle ARM64 hardware. Closing this out.