Skip to content

Maui Blazor template with Native AOT fails to display main page #19117

@kotlarmilos

Description

@kotlarmilos

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

  1. Download the dotnet 10.0.100-rc.1.25451.107 version
  2. Create a template app: dotnet new maui-blazor -n "MyMauiAppTemplate"
  3. Publish the app using Native AOT: cd MyMauiAppTemplate && dotnet publish -f net10.0-ios /p:PublishAot=true /p:PublishAotUsingRuntimePack=true -r ios-arm64
  4. 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.

IMG_5215D072FD03-1

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

Metadata

Metadata

Assignees

Labels

bugIf an issue is a bug or a pull request a bug fixnativeaot

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions