question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Maui Blazor Publish Issue

See original GitHub issue

Description

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

  1. Create New Maui Blazor App
  2. Add MudBalzor
  3. Add Controls to index.html
  4. Publish ios and sign Ad Hoc / App Store
  5. Install app
  6. 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()

IMG_D29C473441AA-1

Issue Analytics

  • State:closed
  • Created 7 months ago
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
vargazcommented, Mar 23, 2023

Its a duplicate, the issue will be tracked in:

https://github.com/dotnet/runtime/issues/78889

0reactions
QwertyMCcommented, Mar 23, 2023

@mkArtakMSFT What does not planned mean? There is no effort to resolve this issue?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found