Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
semdevel opened this issue Sep 27, 2024 · 2 comments
Open

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

semdevel opened this issue Sep 27, 2024 · 2 comments
Labels
platform/iOS 🍎 t/bug Something isn't working

Comments

@semdevel
Copy link

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

@semdevel semdevel added the t/bug Something isn't working label Sep 27, 2024
@pictos
Copy link
Contributor

pictos commented Sep 27, 2024

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

@semdevel
Copy link
Author

semdevel commented Sep 28, 2024

I made changes according to your description.

What I did:

  1. I created ILLink.Descriptors.xml file.
    image

  2. Then I set the file as embedded resource.
    image

  3. Then I set a content of created file to preserve both razor components so they should not be trimmed?
    image

  4. At the end, I used this according to the docs.
    image

Still same, it doesn't work. Can you or somebody else try to implement it using my demo app in public repo? I still don't know what I'm doing wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants