-
Notifications
You must be signed in to change notification settings - Fork 4.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
iOS/AOT: XmlSerializer.Deserialize throws Attempting to JIT compile method 'void Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializerContract:.ctor ()' while running in aot-only mode. #56533
Comments
CC @steveisok |
@MaximLipnin We probably want to set runtime/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializer.cs Line 112 in 8b87ada
|
Tagging subscribers to 'arch-ios': @steveisok, @akoeplinger Issue DetailsDescriptionCalling XmlSerializer.Deserialize ends up throwing a System.ExecutionEngineException: "Attempting to JIT compile method 'void Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializerContract:.ctor ()' while running in aot-only mode."
To reproduce:
Configuration6.0.100-rc.1.21377.4 Regression?With regards to legacy Xamarin, yes.
|
This looks similar to #47114 (comment) (make the serialization mode dependent on |
Description
Calling XmlSerializer.Deserialize ends up throwing a System.ExecutionEngineException: "Attempting to JIT compile method 'void Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializerContract:.ctor ()' while running in aot-only mode."
Test code: https://github.com/rolfbjarne/xamarin-macios/blob/c8014a6b6fd759159b409df19062f11b57ae8e2c/tests/dotnet/MySimpleApp/AppDelegate.cs#L21-L187
To reproduce:
Download & install Xcode 13 beta 3.
Clone my fork of xamarin-macios, and checkout the
Bug1820_GenericList-testcase
branch, and build it:Connect an iOS device
Build & run the test project:
Configuration
6.0.100-rc.1.21377.4
Regression?
With regards to legacy Xamarin, yes.
The text was updated successfully, but these errors were encountered: