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.
Azure Pipelines / runtime-extra-platforms (Build iossimulator-x64 Release AllSubsets_NativeAOT) failed May 8, 2026 in 1h 59m 22s

Build iossimulator-x64 Release AllSubsets_NativeAOT failed

Annotations

Check failure on line 89 in artifacts/bin/coreclr/iossimulator.x64.Release/build/Microsoft.NETCore.Native.Publish.targets

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime-extra-platforms (Build iossimulator-x64 Release AllSubsets_NativeAOT)

artifacts/bin/coreclr/iossimulator.x64.Release/build/Microsoft.NETCore.Native.Publish.targets#L89

artifacts/bin/coreclr/iossimulator.x64.Release/build/Microsoft.NETCore.Native.Publish.targets(89,5): error : (NETCORE_ENGINEERING_TELEMETRY=Build) The published project has a runtimeconfig.template.json that is not supported by PublishAot. Move the configuration to the project file using RuntimeHostConfigurationOption.

Check failure on line 163 in src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime-extra-platforms (Build iossimulator-x64 Release AllSubsets_NativeAOT)

src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs#L163

src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs(163,30): error CS8632: (NETCORE_ENGINEERING_TELEMETRY=Build) The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check failure on line 193 in src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime-extra-platforms (Build iossimulator-x64 Release AllSubsets_NativeAOT)

src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs#L193

src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs(193,18): error CS8632: (NETCORE_ENGINEERING_TELEMETRY=Build) The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check failure on line 195 in src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime-extra-platforms (Build iossimulator-x64 Release AllSubsets_NativeAOT)

src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs#L195

src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs(195,18): error CS8632: (NETCORE_ENGINEERING_TELEMETRY=Build) The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check failure on line 197 in src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime-extra-platforms (Build iossimulator-x64 Release AllSubsets_NativeAOT)

src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs#L197

src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs(197,18): error CS8632: (NETCORE_ENGINEERING_TELEMETRY=Build) The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.