PrismLibrary / Prism

Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Xamarin Forms, and Uno / Win UI Applications..

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] App with Region crashes on iOS Release Mode when using WithUseInterpretation() container rule due to ContainerResolutionException

mlxyz opened this issue · comments

Description

I am using the WithUseInterpretation container rule as described here: dadhi/DryIoc#552 (comment) and here: https://github.com/dadhi/DryIoc/blob/master/docs/DryIoc.Docs/ResolutionPipeline.md for my release deployment on iOS.
When navigating to a page with a region, the app crashes with the following exception:
An unexpected error occurred while resolving 'Prism.Navigation.Regions.Behaviors.DelayedRegionCreationBehavior

Repro project: https://github.com/mlxyz/prism-maui-repro

Also, I had to explicitly specify the viewmodels for my views in the RegisterForNavigation method. Maybe this is a similar problem?

Steps to Reproduce

  1. Use WithUseInterpretation() in release mode on iOS:
    .UsePrism(Rules.Default.WithUseInterpretation(), PrismStartup.Configure)
  2. Try to start app with region

Platform with bug

.NET MAUI

Affected platforms

iOS, I was not able test on other platforms

Did you find any workaround?

No

Relevant log output

No response

This is already fixed and will be available in the next public release. It is currently available to those with a Commercial Plus license.

Great, thanks!