Search Issue Tracker
Fixed in 2022.2.X
Votes
0
Found in
2021.2
2021.2.7f1
2022.1
Issue ID
1395013
Regression
No
IL2CPP build fails when “Managed Stripping Level” is set to “High”
How to reproduce:
1. Open the attached “BuildFailedWithHighStripping.zip” project
2. Open the “SampleScene” Scene
3. Open Edit > Player Settings… > Player > Other Settings
4. Set “Managed Stripping Level” to “High”
5. Build the project
Expected result: Build is successful
Actual result: Build fails
Reproducible with: 2021.2.9f1, 2022.1.0b5
Not reproducible with: 2022.2.0a1
Could not test with: 2019.4.35f1, 2020.3.27f1 (Error in the Console “Assets/Scripts/Init.cs(297,23): error CS0012: The type 'ReadOnlySpan<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’.”
Notes:
- Builds successfully when Managed Stripping Level is set to something then than “High”
- Builds successfully with Mono
Errors:
/Applications/2022.1.0a16_603c2cfd9276/Unity.app/Contents/il2cpp/build/deploy/il2cpp --convert-to-cpp --assembly=Library/Bee/artifacts/MacStandalonePlayerBuildProgram/ManagedStripped/UnityEngine.UnityAnalyticsModule.dll --<...>
Error: IL2CPP error (no further information about what managed code was being converted is available)
System.AggregateException: One or more errors occurred. (Value cannot be null. (Parameter 'definition'))<...>
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [SpeedTree] Wireframe mode not rendering correctly ST assets
- Light2D affecting only the Default Sorting Layer will also affect any Custom Lit Sprite not on that Layer when using Render Graph
- Decals do not get projected onto a GameObject draw with the Render Objects Renderer Feature when according to Event it should be projected
- The Depth value is not being written correctly in the Scene view when the Full Screen Pass Renderer Feature is applied on a GameObject with the Render Object Feature
- [Quest] Materials are not rendering in Player when "Single Pass Instanced \ Multi-View" is selected and "Surface Type" is set to "Transparent"
Resolution Note (fix version 2022.2):
Fixed in 2022.2.0a1