SirJohnK/LocalizationResourceManager.Maui

Not working in iOS release mode

AdriVergara opened this issue · 3 comments

Hi, testing your solution i found out it works fine in all platforms but doesn't apply translations in RELEASE-mode builds for iOS. No problem at all in DEBUG-mode.

I am currently testing in a physical device, I will post again here if i find a workaround for this.

@AdriVergara , thanks for letting me know. I will also look into this.

@AdriVergara , after a quick look at this, it could be linker related. I will do some more digging but you could try to add the following to you application project file.

<ItemGroup>
  <TrimmerRootAssembly Include="LocalizationResourceManager.Maui" />
</ItemGroup>

You can read more here: Linking a .NET MAUI iOS app

There's something wrong with the linker (and/or the LLVM compiler), indeed.

I was struggling with some functionalities (not related with your manager) in my maui app in iOS (release mode), so i have been trying some different iOS project configurations like the Linker Behavior and LLVM optimizing compiler. Finally i found this setting and it started working:

image

I'm not able to identify the exact moment it started working, though..

Didn't try your suggestion because i just saw it now and the previous configuration seems to be working.

Thanks a lot for the fast reply,