Repository navigation
Bad CPU type in executable causing iOS device test failure (exit code 21) #125826
Description
Suggested labels: Known Build Error, test-failure, os-ios, arch-arm64, untriaged
Note: This issue was automatically generated by AI-Test-Triage. Please review and triage accordingly.
Build Information
Build: 20260318.144, 20260318.5
Build error leg or test failing: iOS.Device.ParallelForEachAsync.Test.WorkItemExecution, iOS.CoreCLR.R2R.Test.WorkItemExecution, CoreMangLib.WorkItemExecution, Directed_2.WorkItemExecution, Exceptions.WorkItemExecution, GC-scenarios1.WorkItemExecution, IL_Conformance.WorkItemExecution, JIT.CodeGenBringUpTests_d.WorkItemExecution, JIT.CodeGenBringUpTests_do.WorkItemExecution, JIT.CodeGenBringUpTests_ro.WorkItemExecution, JIT.opt.WorkItemExecution, LoaderClassloaderGenerics.WorkItemExecution, Methodical_others.WorkItemExecution, Methodical_r1.WorkItemExecution, Methodical_ro.WorkItemExecution, Regression_2.WorkItemExecution, Regression_3.WorkItemExecution, Regression_4.WorkItemExecution, Regression_PdbOnly_r.WorkItemExecution, Regression_PdbOnly_r_3.WorkItemExecution, Regression_PdbOnly_r_4.WorkItemExecution, Regression_PdbOnly_ro.WorkItemExecution, Regression_d.WorkItemExecution, Regression_ro_1.WorkItemExecution, Regressions.WorkItemExecution, baseservices.WorkItemExecution, iOS.CoreCLR.Interpreter.Test.WorkItemExecution
Affected CI jobs: build_ios_arm64_Release_AllSubsets_Mono_Smoke, build_ios_arm64_Release_AllSubsets_NativeAOT_Smoke, build_ios_arm64_Release_AllSubsets_CoreCLR_Smoke, build_ios_arm64_Release_AllSubsets_Mono_RuntimeTests, build_ios_arm64_Release_AllSubsets_CoreCLR
Causing Commit Range Information
Commit range: {TODO: Insert commit range or link to changes}
Summary
- Process terminated with exit code 21 during xharness/apple build step
- Log shows error 'Bad CPU type in executable' when running /tmp/helix/working/B7200A35/p/dotnet-cli/dotnet
- Job: build_ios_arm64_Release_AllSubsets_Mono_Smoke; WorkItem: iOS.Device.ParallelForEachAsync.Test
- xharness invoked with --expected-exit-code 42 but script exited 21
- Build artifacts missing: AOTBuild.binlog move failed (No such file or directory)
- App signing failed: No embedded provisioning profile found; 'Failed to sign the app!'
- No xunit xml output found in uploads directory (ls: .../uploads/xunit-*.xml: No such file or directory)
Failure Statistics
Note: These statistics are based on the configured time range and might not reflect the full history of the failure.
- Occurrence Count: 29
- First Failure: 2026-03-19 01:57:09 UTC
- Last Failure: 2026-03-19 09:53:20 UTC
Work Items
Showing 10 most recent of 29 occurrences
| Work Item | Console Log | Build | Job Name |
|---|---|---|---|
| Regression_PdbOnly_r Work Item | View Extract+ sudo launchctl asuser 503 sudo -u helix-runner sh ./xharness-runner.apple.sh --target ios-device --command-timeout 11280 --timeout 03:00:00 --launch-timeout 00:05:00 --includes-test-runner --expected-exit-code 0 --app /tmp/helix/working/ACBC097A/w/B20909B4/e/Regression_PdbOnly_r.app --output-directory /tmp/helix/working/ACBC097A/w/B20909B4/uploads |
20260318.5 | build_ios_arm64_Release_AllSubsets_Mono_RuntimeTests |
| Regression_PdbOnly_r_3 Work Item | View Extract+ sudo launchctl asuser 503 sudo -u helix-runner sh ./xharness-runner.apple.sh --target ios-device --command-timeout 11280 --timeout 03:00:00 --launch-timeout 00:05:00 --includes-test-runner --expected-exit-code 0 --app /tmp/helix/working/ACBC097A/w/9BCB0901/e/Regression_PdbOnly_r_3.app --output-directory /tmp/helix/working/ACBC097A/w/9BCB0901/uploads |
20260318.5 | build_ios_arm64_Release_AllSubsets_Mono_RuntimeTests |
| Regression_PdbOnly_r_4 Work Item | View Extract+ sudo launchctl asuser 503 sudo -u helix-runner sh ./xharness-runner.apple.sh --target ios-device --command-timeout 11280 --timeout 03:00:00 --launch-timeout 00:05:00 --includes-test-runner --expected-exit-code 0 --app /tmp/helix/working/ACBC097A/w/BB4509E6/e/Regression_PdbOnly_r_4.app --output-directory /tmp/helix/working/ACBC097A/w/BB4509E6/uploads |
20260318.5 | build_ios_arm64_Release_AllSubsets_Mono_RuntimeTests |
| Regression_PdbOnly_ro Work Item | View Extract+ sudo launchctl asuser 503 sudo -u helix-runner sh ./xharness-runner.apple.sh --target ios-device --command-timeout 11280 --timeout 03:00:00 --launch-timeout 00:05:00 --includes-test-runner --expected-exit-code 0 --app /tmp/helix/working/ACBC097A/w/B1B10984/e/Regression_PdbOnly_ro.app --output-directory /tmp/helix/working/ACBC097A/w/B1B10984/uploads |
20260318.5 | build_ios_arm64_Release_AllSubsets_Mono_RuntimeTests |
| Regression_d Work Item | View Extract+ sudo launchctl asuser 503 sudo -u helix-runner sh ./xharness-runner.apple.sh --target ios-device --command-timeout 11280 --timeout 03:00:00 --launch-timeout 00:05:00 --includes-test-runner --expected-exit-code 0 --app /tmp/helix/working/ACBC097A/w/961608BE/e/Regression_d.app --output-directory /tmp/helix/working/ACBC097A/w/961608BE/uploads |
20260318.5 | build_ios_arm64_Release_AllSubsets_Mono_RuntimeTests |
| Regression_ro_1 Work Item | View Extract+ sudo launchctl asuser 503 sudo -u helix-runner sh ./xharness-runner.apple.sh --target ios-device --command-timeout 11280 --timeout 03:00:00 --launch-timeout 00:05:00 --includes-test-runner --expected-exit-code 0 --app /tmp/helix/working/ACBC097A/w/A1E808E3/e/Regression_ro_1.app --output-directory /tmp/helix/working/ACBC097A/w/A1E808E3/uploads |
20260318.5 | build_ios_arm64_Release_AllSubsets_Mono_RuntimeTests |
| Regressions Work Item | View Extract+ sudo launchctl asuser 503 sudo -u helix-runner sh ./xharness-runner.apple.sh --target ios-device --command-timeout 11280 --timeout 03:00:00 --launch-timeout 00:05:00 --includes-test-runner --expected-exit-code 0 --app /tmp/helix/working/ACBC097A/w/B0D1099D/e/Regressions.app --output-directory /tmp/helix/working/ACBC097A/w/B0D1099D/uploads |
20260318.5 | build_ios_arm64_Release_AllSubsets_Mono_RuntimeTests |
| baseservices Work Item | View Extract+ sudo launchctl asuser 503 sudo -u helix-runner sh ./xharness-runner.apple.sh --target ios-device --command-timeout 11280 --timeout 03:00:00 --launch-timeout 00:05:00 --includes-test-runner --expected-exit-code 0 --app /tmp/helix/working/ACBC097A/w/A69F0958/e/baseservices.app --output-directory /tmp/helix/working/ACBC097A/w/A69F0958/uploads |
20260318.5 | build_ios_arm64_Release_AllSubsets_Mono_RuntimeTests |
| iOS.CoreCLR.Interpreter.Test Work Item | View Extract+ sudo launchctl asuser 503 sudo -u helix-runner sh ./xharness-runner.apple.sh --target ios-device --command-timeout 1200 --timeout 00:12:00 --launch-timeout 00:05:00 --expected-exit-code 42 --app /tmp/helix/working/B1700944/w/B8340983/e/iOS.CoreCLR.Interpreter.Test.app --output-directory /tmp/helix/working/B1700944/w/B8340983/uploads |
20260318.5 | build_ios_arm64_Release_AllSubsets_CoreCLR |
| iOS.CoreCLR.R2R.Test Work Item | View Extract+ sudo launchctl asuser 503 sudo -u helix-runner sh ./xharness-runner.apple.sh --target ios-device --command-timeout 1200 --timeout 00:12:00 --launch-timeout 00:05:00 --expected-exit-code 42 --app /tmp/helix/working/B1700944/w/A4B20939/e/iOS.CoreCLR.R2R.Test.app --output-directory /tmp/helix/working/B1700944/w/A4B20939/uploads |
20260318.5 | build_ios_arm64_Release_AllSubsets_CoreCLR |
Error Message
{
"ErrorMessage": [
"Bad CPU type in executable",
"No embedded provisioning profile found"
],
"BuildRetry": false,
"ExcludeConsoleLog": false
}Report
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 0 | 0 | 21 |
Activity
dotnet-policy-service commentedon Mar 20, 2026
Tagging subscribers to this area: @akoeplinger, @matouskozak, @simonrozsival
See info in area-owners.md if you want to be subscribed.
dotnet-policy-service commentedon Mar 20, 2026
Tagging subscribers to 'os-ios': @vitek-karas, @kotlarmilos, @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.
AndyAyersMS commentedon Mar 20, 2026
Same as #125776?
vitek-karas commentedon Mar 22, 2026
Note
This comment was AI/Copilot-generated.
Diagnostic run: PR #125897,
runtime-ioslikebuild 1346650Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1346650
Observed in Helix job
d2bb5f40-cd12-4a57-89b0-2655b54b55fb:System.Runtime.TestsonDNCENGMAC174,macOS-15.7.4:arm64,proc_translated=0,rosetta_receipt=missing,rosetta_runtime=missing,x64_exec_works=false, x64dotnet, thenBad CPU type in executable. Console: https://helix.dot.net/api/2019-06-17/jobs/d2bb5f40-cd12-4a57-89b0-2655b54b55fb/workitems/System.Runtime.Tests/consoleiOS.CoreCLR.Interpreter.TestonDNCENGMAC166,macOS-15.7.4: same result. Console: https://helix.dot.net/api/2019-06-17/jobs/d2bb5f40-cd12-4a57-89b0-2655b54b55fb/workitems/iOS.CoreCLR.Interpreter.Test/consoleiOS.CoreCLR.R2R.TestonDNCENGMAC124,macOS-15.7:x86_64,x64_exec_works=true, same x64dotnet, and it got past the AOT build. Console: https://helix.dot.net/api/2019-06-17/jobs/d2bb5f40-cd12-4a57-89b0-2655b54b55fb/workitems/iOS.CoreCLR.R2R.Test/consoleThis run confirms the queue is mixed and the failure is on arm64 hosts without Rosetta trying to run the x64 Helix
dotnet-cli.vitek-karas commentedon Mar 31, 2026
Validated against actual runs after 2026-03-26, not just the tracking issue. The pre-fix baseline (
1346650) still shows the old arm64/no-RosettaBad CPU type in executablefailure, while post-fix runs I checked (1353622,1354852,1357845,1358791) no longer show that signature and appear to be running on x64 hosts, so this looks fixed forosx.15.amd64.iphone.open.vitek-karas commentedon Mar 31, 2026
The underlying issue (mixed hardware in the Helix queue) has been fixed. There don't seem to be any failures in the recent runs. So I'm closing this.