error : Failed to AOT compile for .NET MAUI iOS

Muhammad Yousuf 1 Reputation point
2022-10-23T14:13:10.027+00:00

AOT compile error for MAUI-iOS -f:net6.0-ios for multiple modules.

Azure Pipelines agent: macOS-12

configuration: dotnet publish -f:net6.0-ios -c:Release /p:ArchiveOnBuild=true (signing identity configured)

complete error details:

1) /Users/runner/hostedtoolcache/dotnet/packs/Microsoft.iOS.Sdk/16.0.524/targets/Xamarin.Shared.Sdk.targets(1003,3): error : Failed to AOT compile System.Web.Extensions.dll

Tool /Users/runner/hostedtoolcache/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64/6.0.10/Sdk/../tools/mono-aot-cross execution finished (exit code = 1).

2) /Users/runner/hostedtoolcache/dotnet/packs/Microsoft.iOS.Sdk/16.0.524/targets/Xamarin.Shared.Sdk.targets(1003,3): error : Failed to AOT compile System.IdentityModel.Tokens.Jwt.dll

Tool /Users/runner/hostedtoolcache/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64/6.0.10/Sdk/../tools/mono-aot-cross execution finished (exit code = 1).

3) /Users/runner/hostedtoolcache/dotnet/packs/Microsoft.iOS.Sdk/16.0.524/targets/Xamarin.Shared.Sdk.targets(1003,3): error : Failed to AOT compile Microsoft.WindowsAPICodePack.dll

4) /Users/runner/hostedtoolcache/dotnet/packs/Microsoft.iOS.Sdk/16.0.524/targets/Xamarin.Shared.Sdk.targets(1003,3): error : Failed to AOT compile Microsoft.IdentityModel.JsonWebTokens.dll

5) /Users/runner/hostedtoolcache/dotnet/packs/Microsoft.iOS.Sdk/16.0.524/targets/Xamarin.Shared.Sdk.targets(1003,3): error : Failed to AOT compile Microsoft.IdentityModel.Clients.ActiveDirectory.dll

253180-image.png

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,518 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.