dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.03k stars 1.73k forks source link

[iOS] Trimming in Release is too aggressive, is there a workaround? #24976

Open semdevel opened 2 hours ago

semdevel commented 2 hours ago

Description

I'm facing a problem that I'm trying to resolve. My MAUI Blazor Hybrid app implements Blazor wrapper for a JavaScript library Leaflet for interactive maps in Blazor. Everything works well, map is properly drawed for Windows (Debug/Release) and for Android (Debug/ Release).

Debug mode on iOS platform works normally. Release mode on iOS doens't work properly and map is not drawed. On Android it works, because it is possible to turn trimming off and publish without it, but it is not allowed on iOS.

Is there a workaround or can someone help? I created public repo, the problem can be demostrated there.

Steps to Reproduce

  1. Switch to Release.
  2. Start without debugging on physical devices. Expect same behaviour on iOS simulators.

Link to public reproduction project repository

https://github.com/semdevel/MapApp

Version with bug

8.0.90 SR9

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 18.0, iOS 12.5.5

Did you find any workaround?

Not yet

Relevant log output

No response

pictos commented 2 hours ago

From docs you can define a descriptor format, as shown in docs. Here you can find guidance on how to do it