-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
XML Serializer does not work correctly in "net8.0-ios" release mode #21803
Comments
I believe this would be a runtime issue with Mono AOT. It's unrelated to the MAUI UI framework, outside of the fact that it works in debug mode because MAUIs templates enable the Interpreter by default for debug (hence the issue you linked, where people keep writing code that works because the interpreter happens to be on, but fails in Release mode). If you run this code in a .NET iOS app without the MAUI Template, it would fail in debug mode with the same JIT error. That it works in debug here is happenstance. @rolfbjarne I'm not sure where this issue should go, what do you think? |
I understand and agree, this is not MAUI UI. But is "net8.0-ios" part of MAUI ? It felt weird to put it in xamarin-macios, since it's no longer Xamarin. |
Look related to dotnet/runtime#99548 |
This issue was moved to dotnet/runtime#101041 |
@JeroenBer just like as it was with Xamarin and Xamarin.Forms when there was Xamarin.iOS and Xamarin.Android there is now .NET MAUI and .NET for iOS and .NET for Android. Whenever something is reproducible without .NET MAUI involved, is should not go here. If it only reproduces on iOS, it should probably go into the macios repo, if only on Android it should probably go there. Removing the Xamarin name is being worked on as well as other things to make this all a bit more easier. But don't worry about it too much, while we appreciate any effort on your part to put it in the right place immediately, we're happy to help you get it routed the right way. It's understandable that from the outside it might not always be super clear. |
Description
Under certain conditions XML Serializer does not work correctly in "net8.0-ios" release mode. This means the AOT version on iOS device does not work correctly.
Steps to Reproduce
There are at least 2 situations that will make Xml Serializer throw an exception in release mode:
Link to public reproduction project repository
No response
Version with bug
Unknown/Other
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
No response
Did you find any workaround?
Relevant log output
Using interfaces with properties setters for class also gives a similar exception.
The text was updated successfully, but these errors were encountered: