Skip to content

Fix NativeAOT build errors for full Apple-mobile test set

805311c
Select commit
Loading
Failed to load commit list.
Open

[mobile] Enable NativeAOT library tests on Apple mobile platforms #125437

Fix NativeAOT build errors for full Apple-mobile test set
805311c
Select commit
Loading
Failed to load commit list.
Build Analysis / Build Analysis failed May 8, 2026 in 0s

.NET Result Analysis

Details

Tip

To unconditionally bypass the build analysis check (turn it green), you can use the escape mechanism feature. The completion time may vary, potentially taking several minutes, depending on the build analysis workload at the moment.

⚠️ The following pipeline(s) will not be analyzed as has been explicited excluded from analysis

Known Repository Errors

Known Infrastructure Errors

Build Failures

runtime-extra-platforms / Build / tvos-arm64 Release AllSubsets_NativeAOT / Build product

[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    ❌src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs(163,30): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
    ❌src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs(193,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
    ❌src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs(195,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

runtime-extra-platforms / Build / iossimulator-x64 Release AllSubsets_NativeAOT / Build product

[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    ❌artifacts/bin/coreclr/iossimulator.x64.Release/build/Microsoft.NETCore.Native.Publish.targets(89,5): error : The published project has a runtimeconfig.template.json that is not supported by PublishAot. Move the configuration to the project file using RuntimeHostConfigurationOption.
    ❌src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs(163,30): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
    ❌src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs(193,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

runtime-extra-platforms / Build / iossimulator-arm64 Release AllSubsets_NativeAOT / Build product

[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    ❌artifacts/bin/coreclr/iossimulator.arm64.Release/build/Microsoft.NETCore.Native.Publish.targets(89,5): error : The published project has a runtimeconfig.template.json that is not supported by PublishAot. Move the configuration to the project file using RuntimeHostConfigurationOption.
    ❌src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs(163,30): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
    ❌src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs(193,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

7 other jobs are failing and were not displayed due to space limitations.
Builds with failures: [runtime-extra-platforms] [runtime] [dotnet-linker-tests]

Known test errors

⚠️ 29 Known test errors not displayed due to space limitations

The following build(s) were only partially analyzed due to the number of test errors and helix logs:
- [runtime-extra-platforms]

Test Failures (247 tests failed)

🔹 [All failing tests from runtime]

🔹 [All failing tests from runtime-extra-platforms]

    ⚠️ 242 failing tests not displayed for this pipeline due to space limitations

    AppleHybrid.Tests.WorkItemExecution [Console] [Details] [Artifacts] [7.92% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    This is a helix work item crash with status: BadExit. To investigate look the [Console log] / navigate to [Helix Artifacts]

    Failing Configuration

    baseservices/exceptions/UnhandledExceptionHandler/Foreign/ForeignUnhandled/ForeignUnhandled.cmd [Console] [Details] [Artifacts] [0.38% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
    =================================================================
    	External Debugger Dump:
    =================================================================
    /datadisks/disk1/work/A92209AD/w/B45F09A9/e/baseservices/exceptions/baseservices-exceptions/../UnhandledExceptionHandler/Foreign/ForeignUnhandled/ForeignUnhandled.sh: line 425: 34647 Aborted                 (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"
    

    Return code: 1
    Raw output file: /datadisks/disk1/work/A92209AD/w/B45F09A9/uploads/UnhandledExceptionHandler/Foreign/ForeignUnhandled/output.txt
    Raw output:
    BEGIN EXECUTION
    /datadisks/disk1/work/A92209AD/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true ForeignUnhandled.dll ''
    Failed to load AOT module '/datadisks/disk1/work/A92209AD/w/B45F09A9/e/baseservices/exceptions/UnhandledExceptionHandler/Foreign/ForeignUnhandled/ForeignUnhandled.dll.so' ('/data [Full log]

    CallStack
       at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 136
       at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 117
       at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix)
       at Program.<<Main>$>g__TestExecutor23|0_24(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)... [Full call stack]
    baseservices/exceptions/UnhandledExceptionHandler/PInvoke/PInvokeUnhandled/PInvokeUnhandled.cmd [Console] [Details] [Artifacts] [0.71% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
    =================================================================
    	External Debugger Dump:
    =================================================================
    /datadisks/disk1/work/A92209AD/w/B45F09A9/e/baseservices/exceptions/baseservices-exceptions/../UnhandledExceptionHandler/PInvoke/PInvokeUnhandled/PInvokeUnhandled.sh: line 425: 34673 Aborted                 (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"
    

    Return code: 1
    Raw output file: /datadisks/disk1/work/A92209AD/w/B45F09A9/uploads/UnhandledExceptionHandler/PInvoke/PInvokeUnhandled/output.txt
    Raw output:
    BEGIN EXECUTION
    /datadisks/disk1/work/A92209AD/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true PInvokeUnhandled.dll ''
    Failed to load AOT module '/datadisks/disk1/work/A92209AD/w/B45F09A9/e/baseservices/exceptions/UnhandledExceptionHandler/PInvoke/PInvokeUnhandled/PInvokeUnhandled.dll.so' ('/data [Full log]

    CallStack
       at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 136
       at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 117
       at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix)
       at Program.<<Main>$>g__TestExecutor26|0_27(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)... [Full call stack]
    baseservices/TieredCompilation/TieredVtableMethodTests/TieredVtableMethodTests.cmd [Console] [Details] [Artifacts] [0.37% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
    =================================================================
    	External Debugger Dump:
    =================================================================
    /datadisks/disk1/work/A92209AD/w/B9C909AC/e/baseservices/baseservices/../TieredCompilation/TieredVtableMethodTests/TieredVtableMethodTests.sh: line 425: 12745 Aborted                 (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"
    

    Return code: 1
    Raw output file: /datadisks/disk1/work/A92209AD/w/B9C909AC/uploads/TieredCompilation/TieredVtableMethodTests/output.txt
    Raw output:
    BEGIN EXECUTION
    /datadisks/disk1/work/A92209AD/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true TieredVtableMethodTests.dll ''
    Failed to load AOT module '/datadisks/disk1/work/A92209AD/w/B9C909AC/e/baseservices/TieredCompilation/TieredVtableMethodTests/TieredVtableMethodTests.dll.so' ('/datadisks/disk1/work/A92209AD/w/B9C909AC/e/ [Full log]

    CallStack
       at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 136
       at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 117
       at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix)
       at Program.<<Main>$>g__TestExecutor19|0_20(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)... [Full call stack]

Was this helpful? Yes No