How to reproduce:
1. Open the attached "IN-95032" project
2. Build the project for the Android platform
3. Observe the Console window
Expected result: Project is built without errors
Actual result: Project fails to build with an “Building \…\UnityICallRegistration.cpp failed with output:" error message
Reproducible in: 2023.2.20f1, 6000.0.37f1 (customer)
Not reproducible in: 2022.3.63f1 (customer)
Reproducible on: Windows 10 (customer)
Not reproducible on: macOS 15.5 (M1)
Notes:
- CQA could not reproduce this issue internally
- Also reproducible when building for WebGL and other platforms that support IL2CPP
- According to the customer, the issue does not occur in the 2022.x streams.
- Issue is also speculated to be reproducible in other Unity 6 streams
Workaround: Renaming mono.exe to mono_old.exe and adding lines of code pictured below to mono.bat resolves this issue entirely: