Maui Blazor Publish Issue
See original GitHub issueDescription
When using mudblazor in a .NET 7 Maui Blazor iOS app, the app does not work when published to .ipa for use in App Store or Ad Hoc. App runs fine when run in Debug or Release mode on Device. This only seems to occur when trying to run the published version. BlazorWebview control shows the standard “An unhandled error has occurred”
Steps to Reproduce
- Create New Maui Blazor App
- Add MudBalzor
- Add Controls to index.html
- Publish ios and sign Ad Hoc / App Store
- Install app
- Launch
Link to public reproduction project repository
https://github.com/QwertyMC/MauiBlazorTest
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 16
Did you find any workaround?
No response
Relevant log output
Unable to set property 'Required' on object of type 'MudBlazor.MudTextField`1[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'.
The error was: Attempting to JIT compile method '(wrapper delegate-invoke) void <Module>:invoke_callvirt_void_MudTextField`1<string>_bool (MudBlazor.MudTextField`1<string>,bool)' while running in aot-only mode.
See https://docs.microsoft.com/xamarin/ios/internals/limitations for more information.
: at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.<SetProperties>g__SetProperty|3_0(Object target, PropertySetter writer, String parameterName, Object value)
at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.SetProperties(ParameterView& parameters, Object target)
at Microsoft.AspNetCore.Components.ComponentBase.SetParametersAsync(ParameterView parameters)
at MudBlazor.MudBaseInput`1[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<>n__1(ParameterView parameters)
at MudBlazor.MudBaseInput`1.<SetParametersAsync>d__177[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
Issue Analytics
- State:
- Created 7 months ago
- Comments:14 (10 by maintainers)
Top Results From Across the Web
NET MAUI Blazor publishing fails (win64)
I'm trying out the new .NET MAUI Blazor App template that comes with VS 2022 17.2.0 Preview 2.0. The app runs fine when...
Read more >Microsoft doesn't care about publishing MAUI macOS apps ...
If someone has successfully published a real MAUI Blazor app (not the template app) to the Apple Mac store, I would love to...
Read more >Issue with Razor Class Library in MAUI while publishing ...
While trying publish the MAUI app with Razor Class library for ios, we get below issue. Kindly help to resolve.
Read more >Publish a .NET MAUI app for Windows
NET MAUI currently only allows publishing an MSIX package. You can't yet publish a Windows executable file for distribution. Important. Blazor ...
Read more >I Developed/Published Applicaiton with .NET MAUI Blazor
The idea of publishing native Blazor applications with MAUI is ... The biggest problem for me has always been how an app will...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Its a duplicate, the issue will be tracked in:
https://github.com/dotnet/runtime/issues/78889
@mkArtakMSFT What does not planned mean? There is no effort to resolve this issue?