Reproduction steps:
1. Open the attached “Repro“ project
2. Open the Build Profiles/Build Settings window (File > Build Profiles/Build Settings)
3. Change the architecture to “Apple Silicon“
4. Open Player Settings
5. Make sure the “Scripting Backend” is set to “IL2CPP“ and “IL2CPP Stacktrace Information” to “Method Name, File Name, and Line Number“
6. Build the project
Expected result: Project builds as expected
Actual result: Build fails with an internal build system error
Reproducible with: 2023.3.0a3, 6000.0.40f1, 6000.1.0b8, 6000.2.0a5
Not reproducible with: 2022.3.59f1, 2023.2.20f1, 2023.3.0a2
Couldn't test with: 2023.3.0a1 (Couldn't download IL2CPP module)
Reproducible on: M1 Max MacOS 15.1.1
Not reproducible on: No other environment tested