Search Issue Tracker
Fixed in 2021.2.X
Votes
0
Found in
2021.2
2021.2.5f1
2022.1
2022.2
Issue ID
1399829
Regression
No
Method data is not created when making a second consecutive Development Build
How to reproduce:
1. Open the user attached "strip-test.zip" project
2. Change the Target Platform to Linux (File -> Build Settings) and turn on "Development Build"
3. Change the Scripting Backend to IL2CPP (Edit -> Project Settings -> Player -> Other Settings)
4. Build the project (File -> Build Settings -> Build)
5. Navigate to the "project folder"/Temp/StagingArea/Data/Managed folder and see if MethodsToPreserve.xml exists
6. Build the project again
7. Navigate to the "project folder"/Temp/StagingArea/Data/Managed folder again
Expected result: MethodsToPreserve.xml is created after both builds
Actual result: MethodsToPreserve.xml does not get created after the second build
Reproducible with: 2021.2.15f1, 2022.1.0b11, 2022.2.0a7
Couldn't test with: 2019.4.36f1 (Requires sysroot toolchain package installed, even though it is), 2020.3.31f1 (Necessary folders did not get generated)
Note:
- For constant reproduction delete the Library and Temp folder before repeating steps
- Building project requires cross-compilation toolchain package
- Tested 2021.2 with MacOS
- 2022.1 and 2022.2 can only be built on Linux
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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.17f1