Ivan Povazan
Ivan Povazan
## Support for targeting iOS-like platforms with NativeAOT as an opt-in feature https://github.com/dotnet/runtime/issues/80905 In `.NET 8 Preview 6`, we are shipping `NativeAOT` with support for targeting iOS-like platforms. This includes...
> Might need this to also have the AOT: > > https://github.com/dotnet/maui/blob/5727faa60692a5cc80876fa241cf47634c5f967d/eng/pipelines/common/maui-templates.yml#L43 Thanks. I wasn't aware only `RunOniOS` is running. @mattleibow Would it make more sense to add an additional...
> @ivanpovazan I think you could do either one, but maybe merging your test into the existing `RunOniOS` test is easier? > > You could add a `bool runWithNativeAOT` parameter...
The added test has passed: https://dev.azure.com/xamarin/public/_build/results?buildId=105493&view=logs&j=5577a1a6-5922-5c8f-f8aa-3ff6c6e2bbde&t=01eca571-4306-5a2f-af0e-e1e91b20d32a&l=708
@jonathanpeppers can we merged this, or should we retry to get the CI green?
@jonathanpeppers I manually rebased and pushed, but I see it can be done with `/rebase` as well. ~~In any case, it didn't help to get green CI on this PR~~...
/cc: @jonathanpeppers @simonrozsival We should discuss what will fall into `TBD - Additional relevant testing` but feel free to extend the list as you see fit.
Regarding: > Stand up running Core.DeviceTests.csproj tests with NativeAOT In order to adapt these tests to execute with NativeAOT, we will need to adapt/change `HeadlessTestRunner` https://github.com/dotnet/maui/blob/c20f10de068e806158fa4436da3855e6bb9fc9d1/src/TestUtils/src/DeviceTests.Runners/HeadlessRunner/iOS/HeadlessTestRunner.cs#L13 as it inherits `XHarness.TestRunners.Xunit`...
@simonrozsival as you noticed locally, template tests are also failing on CI with: ``` Failed PublishNativeAOTCheckWarnings("maui","net9.0-ios","ios-arm64") [1 m 7 s] Error Message: System.ArgumentNullException : Value cannot be null. (Parameter 'format')...
Agreed. FWIW, the last tip of `net9` branch https://github.com/dotnet/maui/commit/9c03adcef4fe852f14738825a9cba8df2312b8a7 got merged with macOS and iOS Controls (v16.4) failures, due to missing workloads: ``` Executing: /Users/builder/azdo/_work/3/s/bin/dotnet/dotnet build "../../src/Controls/samples/Controls.Sample.UITests/Controls.Sample.UITests.csproj" --framework net9.0-ios --configuration...