Skip to content

Bad CPU type in executable causing iOS device test failure (exit code 21) #125826

@MatousBot

Description

@MatousBot

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
Device target detected but app not found, skipping signing..
build-apple-app.sh: line 5: /tmp/helix/working/ACBC097A/p/dotnet-cli/dotnet: Bad CPU type in executable
mv: rename /private/tmp/helix/working/ACBC097A/w/B20909B4/e/xharness-output/AOTBuild.binlog to /tmp/helix/working/ACBC097A/w/B20909B4/uploads/AOTBuild.binlog: No such file or directory
Signing bundle /tmp/helix/working/ACBC097A/w/B20909B4/e/Regression_PdbOnly_r.app
No embedded provisioning profile found at /tmp/helix/working/ACBC097A/w/B20909B4/e/Regression_PdbOnly_r.app/embedded.mobileprovision! Failed to sign the app!
Removing empty log files:
ls: /tmp/helix/working/ACBC097A/w/B20909B4/uploads/xunit-*.xml: No such file or directory
+ exit_code=21
Full Log
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
Device target detected but app not found, skipping signing..
build-apple-app.sh: line 5: /tmp/helix/working/ACBC097A/p/dotnet-cli/dotnet: Bad CPU type in executable
mv: rename /private/tmp/helix/working/ACBC097A/w/9BCB0901/e/xharness-output/AOTBuild.binlog to /tmp/helix/working/ACBC097A/w/9BCB0901/uploads/AOTBuild.binlog: No such file or directory
Signing bundle /tmp/helix/working/ACBC097A/w/9BCB0901/e/Regression_PdbOnly_r_3.app
No embedded provisioning profile found at /tmp/helix/working/ACBC097A/w/9BCB0901/e/Regression_PdbOnly_r_3.app/embedded.mobileprovision! Failed to sign the app!
Removing empty log files:
ls: /tmp/helix/working/ACBC097A/w/9BCB0901/uploads/xunit-*.xml: No such file or directory
+ exit_code=21
Full Log
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
Device target detected but app not found, skipping signing..
build-apple-app.sh: line 5: /tmp/helix/working/ACBC097A/p/dotnet-cli/dotnet: Bad CPU type in executable
mv: rename /private/tmp/helix/working/ACBC097A/w/BB4509E6/e/xharness-output/AOTBuild.binlog to /tmp/helix/working/ACBC097A/w/BB4509E6/uploads/AOTBuild.binlog: No such file or directory
Signing bundle /tmp/helix/working/ACBC097A/w/BB4509E6/e/Regression_PdbOnly_r_4.app
No embedded provisioning profile found at /tmp/helix/working/ACBC097A/w/BB4509E6/e/Regression_PdbOnly_r_4.app/embedded.mobileprovision! Failed to sign the app!
Removing empty log files:
ls: /tmp/helix/working/ACBC097A/w/BB4509E6/uploads/xunit-*.xml: No such file or directory
+ exit_code=21
+ '[' -f /tmp/helix/working/ACBC097A/w/BB4509E6/e/.retry ']'
+ '[' -f /tmp/helix/working/ACBC097A/w/BB4509E6/e/.reboot ']'
Full Log
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
Device target detected but app not found, skipping signing..
build-apple-app.sh: line 5: /tmp/helix/working/ACBC097A/p/dotnet-cli/dotnet: Bad CPU type in executable
mv: rename /private/tmp/helix/working/ACBC097A/w/B1B10984/e/xharness-output/AOTBuild.binlog to /tmp/helix/working/ACBC097A/w/B1B10984/uploads/AOTBuild.binlog: No such file or directory
Signing bundle /tmp/helix/working/ACBC097A/w/B1B10984/e/Regression_PdbOnly_ro.app
No embedded provisioning profile found at /tmp/helix/working/ACBC097A/w/B1B10984/e/Regression_PdbOnly_ro.app/embedded.mobileprovision! Failed to sign the app!
Removing empty log files:
ls: /tmp/helix/working/ACBC097A/w/B1B10984/uploads/xunit-*.xml: No such file or directory
+ exit_code=21
+ '[' -f /tmp/helix/working/ACBC097A/w/B1B10984/e/.retry ']'
+ '[' -f /tmp/helix/working/ACBC097A/w/B1B10984/e/.reboot ']'
Full Log
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
Device target detected but app not found, skipping signing..
build-apple-app.sh: line 5: /tmp/helix/working/ACBC097A/p/dotnet-cli/dotnet: Bad CPU type in executable
mv: rename /private/tmp/helix/working/ACBC097A/w/961608BE/e/xharness-output/AOTBuild.binlog to /tmp/helix/working/ACBC097A/w/961608BE/uploads/AOTBuild.binlog: No such file or directory
Signing bundle /tmp/helix/working/ACBC097A/w/961608BE/e/Regression_d.app
No embedded provisioning profile found at /tmp/helix/working/ACBC097A/w/961608BE/e/Regression_d.app/embedded.mobileprovision! Failed to sign the app!
Removing empty log files:
ls: /tmp/helix/working/ACBC097A/w/961608BE/uploads/xunit-*.xml: No such file or directory
+ exit_code=21
Full Log
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
Device target detected but app not found, skipping signing..
build-apple-app.sh: line 5: /tmp/helix/working/ACBC097A/p/dotnet-cli/dotnet: Bad CPU type in executable
mv: rename /private/tmp/helix/working/ACBC097A/w/A1E808E3/e/xharness-output/AOTBuild.binlog to /tmp/helix/working/ACBC097A/w/A1E808E3/uploads/AOTBuild.binlog: No such file or directory
Signing bundle /tmp/helix/working/ACBC097A/w/A1E808E3/e/Regression_ro_1.app
No embedded provisioning profile found at /tmp/helix/working/ACBC097A/w/A1E808E3/e/Regression_ro_1.app/embedded.mobileprovision! Failed to sign the app!
Removing empty log files:
ls: /tmp/helix/working/ACBC097A/w/A1E808E3/uploads/xunit-*.xml: No such file or directory
+ exit_code=21
+ '[' -f /tmp/helix/working/ACBC097A/w/A1E808E3/e/.retry ']'
+ '[' -f /tmp/helix/working/ACBC097A/w/A1E808E3/e/.reboot ']'
Full Log
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
Device target detected but app not found, skipping signing..
build-apple-app.sh: line 5: /tmp/helix/working/ACBC097A/p/dotnet-cli/dotnet: Bad CPU type in executable
mv: rename /private/tmp/helix/working/ACBC097A/w/B0D1099D/e/xharness-output/AOTBuild.binlog to /tmp/helix/working/ACBC097A/w/B0D1099D/uploads/AOTBuild.binlog: No such file or directory
Signing bundle /tmp/helix/working/ACBC097A/w/B0D1099D/e/Regressions.app
No embedded provisioning profile found at /tmp/helix/working/ACBC097A/w/B0D1099D/e/Regressions.app/embedded.mobileprovision! Failed to sign the app!
Removing empty log files:
ls: /tmp/helix/working/ACBC097A/w/B0D1099D/uploads/xunit-*.xml: No such file or directory
+ exit_code=21
+ '[' -f /tmp/helix/working/ACBC097A/w/B0D1099D/e/.retry ']'
+ '[' -f /tmp/helix/working/ACBC097A/w/B0D1099D/e/.reboot ']'
Full Log
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
Device target detected but app not found, skipping signing..
build-apple-app.sh: line 5: /tmp/helix/working/ACBC097A/p/dotnet-cli/dotnet: Bad CPU type in executable
mv: rename /private/tmp/helix/working/ACBC097A/w/A69F0958/e/xharness-output/AOTBuild.binlog to /tmp/helix/working/ACBC097A/w/A69F0958/uploads/AOTBuild.binlog: No such file or directory
Signing bundle /tmp/helix/working/ACBC097A/w/A69F0958/e/baseservices.app
No embedded provisioning profile found at /tmp/helix/working/ACBC097A/w/A69F0958/e/baseservices.app/embedded.mobileprovision! Failed to sign the app!
Removing empty log files:
ls: /tmp/helix/working/ACBC097A/w/A69F0958/uploads/xunit-*.xml: No such file or directory
+ exit_code=21
+ '[' -f /tmp/helix/working/ACBC097A/w/A69F0958/e/.retry ']'
+ '[' -f /tmp/helix/working/ACBC097A/w/A69F0958/e/.reboot ']'
Full Log
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
Device target detected but app not found, skipping signing..
build-apple-app.sh: line 5: /tmp/helix/working/B1700944/p/dotnet-cli/dotnet: Bad CPU type in executable
mv: rename /private/tmp/helix/working/B1700944/w/B8340983/e/xharness-output/AOTBuild.binlog to /tmp/helix/working/B1700944/w/B8340983/uploads/AOTBuild.binlog: No such file or directory
Signing bundle /tmp/helix/working/B1700944/w/B8340983/e/iOS.CoreCLR.Interpreter.Test.app
No embedded provisioning profile found at /tmp/helix/working/B1700944/w/B8340983/e/iOS.CoreCLR.Interpreter.Test.app/embedded.mobileprovision! Failed to sign the app!
Removing empty log files:
ls: /tmp/helix/working/B1700944/w/B8340983/uploads/xunit-*.xml: No such file or directory
+ exit_code=21
+ '[' -f /tmp/helix/working/B1700944/w/B8340983/e/.retry ']'
Full Log
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
Device target detected but app not found, skipping signing..
build-apple-app.sh: line 5: /tmp/helix/working/B1700944/p/dotnet-cli/dotnet: Bad CPU type in executable
mv: rename /private/tmp/helix/working/B1700944/w/A4B20939/e/xharness-output/AOTBuild.binlog to /tmp/helix/working/B1700944/w/A4B20939/uploads/AOTBuild.binlog: No such file or directory
Signing bundle /tmp/helix/working/B1700944/w/A4B20939/e/iOS.CoreCLR.R2R.Test.app
No embedded provisioning profile found at /tmp/helix/working/B1700944/w/A4B20939/e/iOS.CoreCLR.R2R.Test.app/embedded.mobileprovision! Failed to sign the app!
Removing empty log files:
ls: /tmp/helix/working/B1700944/w/A4B20939/uploads/xunit-*.xml: No such file or directory
+ exit_code=21
+ '[' -f /tmp/helix/working/B1700944/w/A4B20939/e/.retry ']'
+ '[' -f /tmp/helix/working/B1700944/w/A4B20939/e/.reboot ']'
Full Log
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

Build Definition Test Pull Request
1345393 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution #125755
1345239 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution #125844
1344953 dotnet/runtime iOS.Device.ParallelForEachAsync.Test.WorkItemExecution
1344853 dotnet/runtime iOS.Device.ParallelForEachAsync.Test.WorkItemExecution #125817
1344780 dotnet/runtime iOS.Device.ParallelForEachAsync.Test.WorkItemExecution #125829
1344794 dotnet/runtime iOS.Device.ParallelForEachAsync.Test.WorkItemExecution
1344681 dotnet/runtime iOS.Device.ParallelForEachAsync.Test.WorkItemExecution #125441
1344650 dotnet/runtime iOS.Device.ParallelForEachAsync.Test.WorkItemExecution #124553
1344648 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution #124629

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 9 9

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