xamarin-macios
xamarin-macios copied to clipboard
Setting UseInterpreter=True continues to link out code
Steps to Reproduce
- File | New | iOS/Maui
- Set UseInterpreter=True
- Observe the linker kick in and types being removed
Related to these PRs:
- https://github.com/dotnet/maui/pull/8423
- https://github.com/dotnet/maui/pull/8450
Expected Behavior
No linking.
Actual Behavior
Linking.
I'm not sure this is correct to change.
Do you need the linker off because it removes types required by hot reload to work?
Primarily, yes. But isn't this needed for C# hot reload too?
Enabling the interpreter doesn't mean the linker has to be disabled, interpreted code works just fine.
But if hot reload requires the linker to be off, then the deciding factor should be whether hot reload is enabled or not - so I guess the question is whether there's a way to detect if hot reload is enabled or not?
@drasticactions Is there a way to detect this?
I am also not sure if this really needs to live in our targets but MAUI.
And this bug is bouncing again from may 2022. We are in August 2022. And it's still making the maui/ios debugging xp unacceptable.
You may be right. It may be a maui thing as hot reload is a xaml only thing.
But please, then, move that issue to the maui repo. Don't let it sit here.
This should be mitigated by https://github.com/dotnet/maui/pull/8450
This was solved in MAUI: https://github.com/dotnet/maui/pull/8450