Description
When attempting to use Native AOT with the Maui Blazor template targeting iOS with dotnet version 8.0.100-rtm.23479.1, the app fails to display the main page. No errors were retrieved from the app log. The app functions correctly with the Mono runtime.
Steps to Reproduce
- Download the dotnet
10.0.100-rc.1.25451.107 version
- Create a template app:
dotnet new maui-blazor -n "MyMauiAppTemplate"
- Publish the app using Native AOT:
cd MyMauiAppTemplate && dotnet publish -f net10.0-ios /p:PublishAot=true /p:PublishAotUsingRuntimePack=true -r ios-arm64
- Run the app using xharness:
dotnet xharness apple run --app=bin/Release/net10.0-ios/ios-arm64/publish/Payload/MyMauiAppTemplate.app --targets=ios-device --output-directory=/tmp/out
Expected Behavior
The app should display the main page.
Actual Behavior
The app displays the error page.

Environment
| Installed Workload Id |
Manifest Version |
Installation Source |
| maui |
10.0.0-rc.1.25452.6/10.0.100-rc.1 |
SDK 10.0.100-rc.1 |
Description
When attempting to use Native AOT with the Maui Blazor template targeting iOS with dotnet version
8.0.100-rtm.23479.1, the app fails to display the main page. No errors were retrieved from the app log. The app functions correctly with the Mono runtime.Steps to Reproduce
10.0.100-rc.1.25451.107versiondotnet new maui-blazor -n "MyMauiAppTemplate"cd MyMauiAppTemplate && dotnet publish -f net10.0-ios /p:PublishAot=true /p:PublishAotUsingRuntimePack=true -r ios-arm64dotnet xharness apple run --app=bin/Release/net10.0-ios/ios-arm64/publish/Payload/MyMauiAppTemplate.app --targets=ios-device --output-directory=/tmp/outExpected Behavior
The app should display the main page.
Actual Behavior
The app displays the error page.
Environment