Unity Issue Tracker - “ValidateSchema Error2” error is thrown in the Player when using IL2CPP Scripting Backend
Closed
UUM-70796
“ValidateSchema Error2” error is thrown in the Player when using IL2CPP Scripting Backend
Unity: IL2CPP
Won't Fix
6.0.X
2022.3.X
The PlatformNotSupportedException is coming from the base class libraries used for the IL2CPP backend. DbProviderFactories is not supported for IL2CPP players. All of the methods on DbProviderFactories will throw a PlatformNotSupportedException.
How to reproduce:
1. Open the “IL2CPPPlayerDBIssue“ project
2. Open the “SampleScene”
3. Make sure that “Scripting Backend” is set to “IL2CPP” (Edit > Project Settings > Player > Other Settings > Configuration)
4. Make sure that “Development Build” is enabled (File > Build Settings)
5. Build And Run
Expected result: No errors are thrown
Actual result: The “ValidateSchema Error2” error is thrown
Reproduced with: 2022.3.27f1, 6000.0.0f1
Could not test with: 2021.3.38f1 (“get_dataPath is not allowed to be called from a MonoBehaviour constructor” error is thrown)
Reproduced on: Windows 11
Not reproduced on: No other environment tested
Notes:
1. Not reproducible in the Editor
2. Not reproducible when “Scripting Backend” is set to “Mono”
Prioritise and Follow this issue
Have a workaround or additional info about this issue?