-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Description
Currently the interpreter is enabled for Debug builds:
maui/.nuspec/Microsoft.Maui.Controls.props
Lines 8 to 9 in 6b43399
<UseInterpreter Condition="'$(UseInterpreter)' == '' and '$(Configuration)' == 'Debug'">True</UseInterpreter> | |
<MtouchLink Condition="'$(MtouchLink)' == '' and '$(Configuration)' == 'Debug' and '$(UseInterpreter)' == 'true'">None</MtouchLink> |
At least for iOS and Mac Catalyst, we might want to make this the default for Release builds as well, because I'm seeing a lot of customers running into problems where their app crashes once they switch to Release builds, because they used some feature in their app that requires the interpreter.
Some customers don't even test their apps in Release mode, they go straight to trying to publish and they're obviously rather upset when their apps are rejected because they crash at launch.
While the interpreter might slow things down, the performance will be fine for most apps, and if someone really needs the additional performance they can disable the interpreter.
The main downside might be that crash reports will be rather useless, because all managed stack frames will just show up as the interpreter doing "stuff".
Steps to Reproduce
Triage bugs for a while.
Alternatively read about customer's experiences online (Twitter, blog posts, etc.).
Example blog post: https://www.andreasnesheim.no/my-experience-with-migrating-my-app-from-xamarin-forms-to-net-maui/
Link to public reproduction project repository
N/A
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS, macOS
Affected platform versions
All so far
Did you find any workaround?
- Better documentation.
- Better error messages.
Relevant log output
No response
References
- Maui Blazor App :in (release process: "ipa" file ) project crashes on showing a nuget control #13016
- EF Core with Sqlite throws System.ExecutionEngineException running on iOS Device (Release) #9176
- Can't use Entity Framework Core in iOS Release builds #12537
- Release System.ExecutionEngineException Blazor Hybrid iOS ComponentProperties.SetProperties(in ParameterView, object)+SetProperty(object, PropertySetter, string, object) runtime#74015
- Release throws exception with local styles since last VS update #12316
- iOS Release builds stopped working after last update #12519
- https://github.com/dotnet/maui/issues?q=is%3Aissue+sort%3Aupdated-desc+useinterpreter+release+
- .NET Maui release build crashes but debug build is fine #18870