Danger-xcov fails on Apple silicon

Trying to use Danger with xcov.produce_report on macos.m1.large.gen1. Anyone aware of a work around for this?

Bad CPU type in executable - fork failed
[!] The exception involves the following plugins:
 -  danger-xcov

bundler: failed to load command: danger (/Users/distiller/project/vendor/bundle/ruby/3.0.0/bin/danger)
/Users/distiller/project/vendor/bundle/ruby/3.0.0/gems/xcov-1.8.1/lib/xcov/error_handler.rb:20:in `handle_error': \e[31m (Danger::DSLError)
[!] Invalid `Dangerfile` file: \e[31mError creating your coverage report - see the log above\e[0m
 #  from Dangerfile:50
1 Like

You will probably need to install Rosetta as the executable you are trying to invoke was not built for arm64. You can install Rosetta with the command from the macOS orb:

1 Like

Thanks, that worked for me…

      - macos/install-rosetta
      - run:
          name: Danger
          command: bundle exec danger
1 Like

Awesome! Seems the project needs to get compiled for arm64 properly at some point in the future, though it appears pretty abandoned

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.