Search Issue Tracker
Fixed
Fixed in 2021.3.33f1, 2022.3.15f1, 2023.2.1f1, 2023.3.0a16, 2024.1.0a1
Votes
0
Found in
2021.3.31f1
2022.3.10f1
2023.1.16f1
2023.2.0b12
2023.3.0a8
Issue ID
UUM-52898
Regression
No
Structure with CharSet.Auto prevents project build when IL2CPP is selected
How to reproduce:
1. Open the attached project “StructBug”
2. Build And Run the project
Expected result: The build is successful
Actual result: The build fails with “Building Library\Bee\artifacts\WinPlayerBuildProgram\u1oik\94fkllbqrvfh.obj failed with output: Il2CppCCalculateTypeValues.cpp” error
Reproducible with: 2021.3.31f1, 2022.3.10f1, 2023.1.16f1, 2023.2.0b12, 2023.3.0a8
Reproducible on: Windows 11 Pro
Not reproducible with: No other environment tested
Full error:
Building Library\Bee\artifacts\WinPlayerBuildProgram\u1oik\94fkllbqrvfh.obj failed with output:
Il2CppCCalculateTypeValues.cpp
C:\Users\Desktop\Cases\IN-55352_Il2CppTest\Library\Bee\artifacts\WinPlayerBuildProgram\il2cppOutput\cpp\Il2CppCCalculateTypeValues.cpp(37855): error C2065: 'SomeStruct_t7B03F5B1FA7563B4C6F0EB378AA62A87BEF2C37D_marshaled_pinvoke': undeclared identifier
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Add comment