xcov
xcov copied to clipboard
Bad CPU type in executable
I'm trying to run xcov
on a MacBook Pro M1 but it keeps crashing with the following error:
Bad CPU type in executable - fork failed
Looks like it's something to do with the ARM architecture on the M1. Does xcov
work with Apple silicon?
Installed with: gem install xcov
Run with: bundle exec fastlane run xcov workspace:"myproject.xcworkspace" scheme:"myscheme" output_directory:"xcov_output"
xcov: 1.8.1 macOS: 13.1
Full log:
[11:17:56]: $ /opt/homebrew/lib/ruby/gems/2.7.0/gems/xcov-1.8.1/lib/xcov-core/bin/xcov-core -s xcov_output/xccovreport-0.xccovreport -o xcov_output/tmp/report.json20230113-26644-121m7q0 --ide-foundation-path /Applications/Xcode.app/Contents/Developer/../Frameworks/IDEFoundation.framework/Versions/A/IDEFoundation
[11:17:56]: ▸ Loading...
Bad CPU type in executable - fork failed
Looking for related GitHub issues on fastlane/fastlane...
➡️ XCov failing to find .xccoverage file on 2.201.0
https://github.com/fastlane/fastlane/issues/19824 [closed] 13 💬
07 May 2022
🔗 You can ⌘ + double-click on links to open them directly in your browser.
bundler: failed to load command: fastlane (/opt/homebrew/lib/ruby/gems/2.7.0/bin/fastlane)
Traceback (most recent call last):
41: from /opt/homebrew/lib/ruby/gems/2.7.0/bin/bundle:25:in `<main>'
40: from /opt/homebrew/lib/ruby/gems/2.7.0/bin/bundle:25:in `load'
39: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/exe/bundle:36:in `<top (required)>'
38: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
37: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/exe/bundle:48:in `block in <top (required)>'
36: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/cli.rb:25:in `start'
35: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
34: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/cli.rb:31:in `dispatch'
33: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
32: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
31: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
30: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/cli.rb:483:in `exec'
29: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/cli/exec.rb:23:in `run'
28: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/cli/exec.rb:58:in `kernel_load'
27: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/cli/exec.rb:58:in `load'
26: from /opt/homebrew/lib/ruby/gems/2.7.0/bin/fastlane:25:in `<top (required)>'
25: from /opt/homebrew/lib/ruby/gems/2.7.0/bin/fastlane:25:in `load'
24: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/bin/fastlane:23:in `<top (required)>'
23: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
22: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
21: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
20: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
19: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
18: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
17: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
16: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
15: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/commands_generator.rb:226:in `block (2 levels) in run'
14: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/one_off.rb:22:in `execute'
13: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/one_off.rb:42:in `run'
12: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
11: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:229:in `chdir'
10: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
9: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
8: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
7: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/actions/xcov.rb:13:in `run'
6: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/xcov-1.8.1/lib/xcov/manager.rb:34:in `run'
5: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/xcov-1.8.1/lib/xcov/manager.rb:97:in `parse_xccoverage'
4: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/xcov-1.8.1/lib/xcov-core.rb:24:in `parse'
3: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/xcov-1.8.1/lib/xcov-core.rb:30:in `execute_command'
2: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane_core/lib/fastlane_core/command_executor.rb:46:in `execute'
1: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane_core/lib/fastlane_core/fastlane_pty.rb:24:in `spawn'
/opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane_core/lib/fastlane_core/fastlane_pty.rb:24:in `spawn': Bad CPU type in executable - fork failed (Errno::EBADARCH)
41: from /opt/homebrew/lib/ruby/gems/2.7.0/bin/bundle:25:in `<main>'
40: from /opt/homebrew/lib/ruby/gems/2.7.0/bin/bundle:25:in `load'
39: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/exe/bundle:36:in `<top (required)>'
38: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
37: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/exe/bundle:48:in `block in <top (required)>'
36: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/cli.rb:25:in `start'
35: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
34: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/cli.rb:31:in `dispatch'
33: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
32: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
31: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
30: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/cli.rb:483:in `exec'
29: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/cli/exec.rb:23:in `run'
28: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/cli/exec.rb:58:in `kernel_load'
27: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/cli/exec.rb:58:in `load'
26: from /opt/homebrew/lib/ruby/gems/2.7.0/bin/fastlane:25:in `<top (required)>'
25: from /opt/homebrew/lib/ruby/gems/2.7.0/bin/fastlane:25:in `load'
24: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/bin/fastlane:23:in `<top (required)>'
23: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
22: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
21: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
20: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
19: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
18: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
17: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
16: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
15: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/commands_generator.rb:226:in `block (2 levels) in run'
14: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/one_off.rb:22:in `execute'
13: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/one_off.rb:42:in `run'
12: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
11: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:229:in `chdir'
10: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
9: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
8: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
7: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/actions/xcov.rb:13:in `run'
6: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/xcov-1.8.1/lib/xcov/manager.rb:34:in `run'
5: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/xcov-1.8.1/lib/xcov/manager.rb:97:in `parse_xccoverage'
4: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/xcov-1.8.1/lib/xcov-core.rb:24:in `parse'
3: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/xcov-1.8.1/lib/xcov-core.rb:30:in `execute_command'
2: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane_core/lib/fastlane_core/command_executor.rb:46:in `execute'
1: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane_core/lib/fastlane_core/fastlane_pty.rb:24:in `spawn'
/opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane_core/lib/fastlane_core/fastlane_pty.rb:24:in `spawn': Bad CPU type in executable - fork failed (FastlaneCore::FastlanePtyError)
42: from /opt/homebrew/lib/ruby/gems/2.7.0/bin/bundle:25:in `<main>'
41: from /opt/homebrew/lib/ruby/gems/2.7.0/bin/bundle:25:in `load'
40: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/exe/bundle:36:in `<top (required)>'
39: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
38: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/exe/bundle:48:in `block in <top (required)>'
37: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/cli.rb:25:in `start'
36: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
35: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/cli.rb:31:in `dispatch'
34: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
33: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
32: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
31: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/cli.rb:483:in `exec'
30: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/cli/exec.rb:23:in `run'
29: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/cli/exec.rb:58:in `kernel_load'
28: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.11/lib/bundler/cli/exec.rb:58:in `load'
27: from /opt/homebrew/lib/ruby/gems/2.7.0/bin/fastlane:25:in `<top (required)>'
26: from /opt/homebrew/lib/ruby/gems/2.7.0/bin/fastlane:25:in `load'
25: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/bin/fastlane:23:in `<top (required)>'
24: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
23: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
22: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
21: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
20: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
19: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
18: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
17: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
16: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/commands_generator.rb:226:in `block (2 levels) in run'
15: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/one_off.rb:22:in `execute'
14: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/one_off.rb:42:in `run'
13: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
12: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:229:in `chdir'
11: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
10: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
9: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
8: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/actions/xcov.rb:13:in `run'
7: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/xcov-1.8.1/lib/xcov/manager.rb:34:in `run'
6: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/xcov-1.8.1/lib/xcov/manager.rb:97:in `parse_xccoverage'
5: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/xcov-1.8.1/lib/xcov-core.rb:24:in `parse'
4: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/xcov-1.8.1/lib/xcov-core.rb:30:in `execute_command'
3: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane_core/lib/fastlane_core/command_executor.rb:45:in `execute'
2: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/fastlane-2.210.1/fastlane_core/lib/fastlane_core/command_executor.rb:72:in `rescue in execute'
1: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/xcov-1.8.1/lib/xcov-core.rb:38:in `block in execute_command'
/opt/homebrew/lib/ruby/gems/2.7.0/gems/xcov-1.8.1/lib/xcov/error_handler.rb:20:in `handle_error': \e[31m[!] \e[31mError creating your coverage report - see the log above\e[0m (RuntimeError)
This was working for me on an M1 Mac mini, but just upgrades to an M2 Mini and now it's failing with this same error:
62: [11:08:41]: $ /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/xcov-1.8.1/lib/xcov-core/bin/xcov-core -s ./fastlane/XcovReport/xccovreport-0.xccovreport -o ./fastlane/XcovReport/tmp/report.json20230223-3445-n7htli --ide-foundation-path /Applications/Xcode-14.2.0.app/Contents/Developer/../Frameworks/IDEFoundation.framework/Versions/A/IDEFoundation
63: [11:08:41]: ▸ Loading...
64: Bad CPU type in executable - fork failed
65: +------------------+----------------------+
66: | Lane Context |
67: +------------------+----------------------+
68: | DEFAULT_PLATFORM | ios |
69: | PLATFORM_NAME | ios |
70: | LANE_NAME | ios coverage_reports |
71: +------------------+----------------------+
72: [11:08:41]: Error creating your coverage report - see the log above
73:
74: +------+------------------+-------------+
75: | fastlane summary |
76: +------+------------------+-------------+
77: | Step | Action | Time (in s) |
78: +------+------------------+-------------+
79: | 1 | default_platform | 0 |
80: | 2 | remove_files | 0 |
81: | 3 | remove_files | 0 |
89: | 💥 | xcov | 0 |
90: +------+------------------+-------------+
91:
92: [11:08:41]: fastlane finished with errors
93:
94: Looking for related GitHub issues on fastlane/fastlane...
95:
96: ➡️ XCov failing to find .xccoverage file on 2.201.0
97: https://github.com/fastlane/fastlane/issues/19824 [closed] 13 💬
98: 07 May 2022
99:
100: 🔗 You can ⌘ + double-click on links to open them directly in your browser.
101: bundler: failed to load command: fastlane (/Users/mac-mini-pa/.gem/ruby/3.2.0/bin/fastlane)
102: /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/xcov-1.8.1/lib/xcov/error_handler.rb:20:in `handle_error': [!] Error creating your coverage report - see the log above (RuntimeError)
103: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/xcov-1.8.1/lib/xcov-core.rb:38:in `block in execute_command'
104: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane_core/lib/fastlane_core/command_executor.rb:72:in `rescue in execute'
105: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane_core/lib/fastlane_core/command_executor.rb:45:in `execute'
106: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/xcov-1.8.1/lib/xcov-core.rb:30:in `execute_command'
107: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/xcov-1.8.1/lib/xcov-core.rb:24:in `parse'
108: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/xcov-1.8.1/lib/xcov/manager.rb:97:in `parse_xccoverage'
109: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/xcov-1.8.1/lib/xcov/manager.rb:34:in `run'
110: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/actions/xcov.rb:13:in `run'
111: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
112: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
113: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
114: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
115: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
116: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
117: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
118: from Fastfile:161:in `block (2 levels) in parsing_binding'
119: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/lane.rb:33:in `call'
120: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
121: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
122: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
123: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
124: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
125: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
126: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
127: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
128: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
129: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
130: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
131: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
132: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
133: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
134: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/bin/fastlane:23:in `<top (required)>'
135: from /Users/mac-mini-pa/.gem/ruby/3.2.0/bin/fastlane:25:in `load'
136: from /Users/mac-mini-pa/.gem/ruby/3.2.0/bin/fastlane:25:in `<top (required)>'
137: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/cli/exec.rb:58:in `load'
138: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/cli/exec.rb:58:in `kernel_load'
139: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/cli/exec.rb:23:in `run'
140: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/cli.rb:492:in `exec'
141: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
142: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
143: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
144: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/cli.rb:34:in `dispatch'
145: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
146: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/cli.rb:28:in `start'
147: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/exe/bundle:45:in `block in <top (required)>'
148: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
149: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/exe/bundle:33:in `<top (required)>'
150: from /Users/mac-mini-pa/.gem/ruby/3.2.0/bin/bundle:25:in `load'
151: from /Users/mac-mini-pa/.gem/ruby/3.2.0/bin/bundle:25:in `<main>'
152: /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane_core/lib/fastlane_core/fastlane_pty.rb:24:in `spawn': Bad CPU type in executable - fork failed (FastlaneCore::FastlanePtyError)
153: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane_core/lib/fastlane_core/fastlane_pty.rb:24:in `spawn'
154: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane_core/lib/fastlane_core/command_executor.rb:46:in `execute'
155: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/xcov-1.8.1/lib/xcov-core.rb:30:in `execute_command'
156: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/xcov-1.8.1/lib/xcov-core.rb:24:in `parse'
157: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/xcov-1.8.1/lib/xcov/manager.rb:97:in `parse_xccoverage'
158: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/xcov-1.8.1/lib/xcov/manager.rb:34:in `run'
159: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/actions/xcov.rb:13:in `run'
160: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
161: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
162: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
163: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
164: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
165: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
166: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
167: from Fastfile:161:in `block (2 levels) in parsing_binding'
168: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/lane.rb:33:in `call'
169: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
170: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
171: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
172: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
173: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
174: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
175: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
176: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
177: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
178: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
179: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
180: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
181: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
182: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
183: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/bin/fastlane:23:in `<top (required)>'
184: from /Users/mac-mini-pa/.gem/ruby/3.2.0/bin/fastlane:25:in `load'
185: from /Users/mac-mini-pa/.gem/ruby/3.2.0/bin/fastlane:25:in `<top (required)>'
186: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/cli/exec.rb:58:in `load'
187: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/cli/exec.rb:58:in `kernel_load'
188: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/cli/exec.rb:23:in `run'
190: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/cli.rb:492:in `exec'
191: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
192: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
193: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
194: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/cli.rb:34:in `dispatch'
195: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
196: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/cli.rb:28:in `start'
197: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/exe/bundle:45:in `block in <top (required)>'
198: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
199: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/exe/bundle:33:in `<top (required)>'
200: from /Users/mac-mini-pa/.gem/ruby/3.2.0/bin/bundle:25:in `load'
201: from /Users/mac-mini-pa/.gem/ruby/3.2.0/bin/bundle:25:in `<main>'
202: /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane_core/lib/fastlane_core/fastlane_pty.rb:24:in `spawn': Bad CPU type in executable - fork failed (Errno::EBADARCH)
203: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane_core/lib/fastlane_core/fastlane_pty.rb:24:in `spawn'
204: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane_core/lib/fastlane_core/command_executor.rb:46:in `execute'
205: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/xcov-1.8.1/lib/xcov-core.rb:30:in `execute_command'
206: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/xcov-1.8.1/lib/xcov-core.rb:24:in `parse'
207: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/xcov-1.8.1/lib/xcov/manager.rb:97:in `parse_xccoverage'
208: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/xcov-1.8.1/lib/xcov/manager.rb:34:in `run'
209: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/actions/xcov.rb:13:in `run'
210: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
211: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
212: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
213: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
214: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
215: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
216: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
217: from Fastfile:161:in `block (2 levels) in parsing_binding'
218: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/lane.rb:33:in `call'
219: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
220: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
221: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
222: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
223: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
224: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
225: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
226: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
227: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
228: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
229: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
230: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
231: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
232: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
233: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/fastlane-2.212.0/bin/fastlane:23:in `<top (required)>'
234: from /Users/mac-mini-pa/.gem/ruby/3.2.0/bin/fastlane:25:in `load'
235: from /Users/mac-mini-pa/.gem/ruby/3.2.0/bin/fastlane:25:in `<top (required)>'
236: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/cli/exec.rb:58:in `load'
237: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/cli/exec.rb:58:in `kernel_load'
238: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/cli/exec.rb:23:in `run'
239: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/cli.rb:492:in `exec'
240: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
241: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
242: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
243: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/cli.rb:34:in `dispatch'
236: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
237: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/cli.rb:28:in `start'
238: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/exe/bundle:45:in `block in <top (required)>'
239: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
240: from /Users/mac-mini-pa/.gem/ruby/3.2.0/gems/bundler-2.4.7/exe/bundle:33:in `<top (required)>'
241: from /Users/mac-mini-pa/.gem/ruby/3.2.0/bin/bundle:25:in `load'
242: from /Users/mac-mini-pa/.gem/ruby/3.2.0/bin/bundle:25:in `<main>'
I personally don't know enough about ruby to fix this problem or propose a patch, but if anyone needs a workaround, installing Rosetta2 on the build machine allowed xcov
to run on my M2 Mac mini:
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
Any updates on this? Encountering this myself now.
Experiencing the same issue on M2. Thanks @edelabar for the workaround, it solved it.
I'm in the same situation. I tried installing from source but guess what, there's an x86 binary in the repo itself, and which hasn't changed in years (even though we've had Apple Silicon for some years now) How to re-build it? ~no idea~ guess we need to find it at https://github.com/fastlane-community/xcov-core
@joshdholtz Any chance we could get some eyes on this issue and prioritize a fix? Relying on Rosetta is not a long term solution.