I’m trying to build my app using il2cpp and it gives me this error:
Build completed with a result of 'Failed' in 41 seconds (41128 ms)
Unhandled exception. System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Program.<Main>$(String[] args)
0x00007ff8eb046bdd (Unity) StackWalker::ShowCallstack
0x00007ff8eb056b99 (Unity) PlatformStacktrace::GetStacktrace
0x00007ff8ec2c132e (Unity) Stacktrace::GetStacktrace
0x00007ff8ec869cbf (Unity) DebugStringToFile
0x00007ff8ea173575 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x00000232269404ae (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log_Injected (UnityEngine.LogType,UnityEngine.LogOption,UnityEngine.Bindings.ManagedSpanWrapper&,intptr)
0x00000232269402b3 (Mono JIT Code) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x000002322693fc9b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
0x000002322693f11e (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x0000023227dfabfa (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x000002322684bb1b (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
0x000002322be16d9b (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
0x000002322be1638b (Mono JIT Code) UnityEditor.Build.Profile.BuildProfileModuleUtil:CallInternalBuildMethods (bool,UnityEditor.BuildOptions)
0x000002322be15e5b (Mono JIT Code) UnityEditor.Build.Profile.BuildProfileWindow:OnBuildButtonClicked (UnityEditor.BuildOptions)
0x00000232268469cb (Mono JIT Code) UnityEditor.Build.Profile.BuildProfileWindow:<CreateGUI>b__24_0 ()
0x0000023226846827 (Mono JIT Code) UnityEngine.UIElements.Clickable:Invoke (UnityEngine.UIElements.EventBase)
0x0000023226845fe3 (Mono JIT Code) UnityEngine.UIElements.Clickable:ProcessUpEvent (UnityEngine.UIElements.EventBase,UnityEngine.Vector2,int)
0x00000232268455f8 (Mono JIT Code) UnityEngine.UIElements.Clickable:OnPointerUp (UnityEngine.UIElements.PointerUpEvent)
0x00000231a6b65ea4 (Mono JIT Code) UnityEngine.UIElements.EventCallbackFunctor`1<TEventType_REF>:Invoke (UnityEngine.UIElements.EventBase)
0x00000231a6b65337 (Mono JIT Code) UnityEngine.UIElements.EventCallbackRegistry/DynamicCallbackList:Invoke (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel,UnityEngine.UIElements.VisualElement)
0x00000231a6b64c63 (Mono JIT Code) UnityEngine.UIElements.EventDispatchUtilities:HandleEvent_BubbleUpCallbacks (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel,UnityEngine.UIElements.VisualElement)
0x000002322bddc90b (Mono JIT Code) UnityEngine.UIElements.EventDispatchUtilities:HandleEventAcrossPropagationPathWithCompatibilityEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel,UnityEngine.UIElements.VisualElement,bool)
0x00000231a6b7adab (Mono JIT Code) UnityEngine.UIElements.EventDispatchUtilities:PropagateEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel,UnityEngine.UIElements.VisualElement,bool)
0x000002322bdda1db (Mono JIT Code) UnityEngine.UIElements.EventDispatchUtilities:DispatchToCapturingElement (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel,int,UnityEngine.Vector2)
0x000002322bdd6d8b (Mono JIT Code) UnityEngine.UIElements.EventDispatchUtilities:DispatchToCapturingElementOrElementUnderPointer (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel,int,UnityEngine.Vector2)
0x000002322bdd6ba3 (Mono JIT Code) UnityEngine.UIElements.PointerEventBase`1<T_REF>:Dispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x00000231a6b79534 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel)
0x00000231a6b6eca3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel,UnityEngine.UIElements.DispatchMode)
0x00000231a6b6e7e3 (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
0x00000232202ca0f3 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x00000232202c91f3 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x00000232202c8c14 (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x00000232202c890b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x00000232202c629c (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x00000232202c6646 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007ff94b07699e (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ff94afb8444 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3068)
0x00007ff94afb8530 (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3115)
0x00007ff8eaf6abf4 (Unity) scripting_method_invoke
0x00007ff8eaf42983 (Unity) ScriptingInvocation::Invoke
0x00007ff8eaf3dc45 (Unity) ScriptingInvocation::Invoke<void>
0x00007ff8eb08219d (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007ff8ec276d64 (Unity) GUIView::ProcessRetainedMode
0x00007ff8ec30238a (Unity) GUIView::OnInputEvent
0x00007ff8ec276c93 (Unity) GUIView::ProcessInputEventInternal
0x00007ff8ec276b21 (Unity) GUIView::ProcessInputEvent
0x00007ff8ec302fd1 (Unity) GUIViewPlatform::ProcessEventMessages
0x00007ff8ec2ff57f (Unity) GUIViewPlatform::GUIViewWndProc
0x00007ff9758383f1 (USER32) DispatchMessageW
0x00007ff975837eb1 (USER32) DispatchMessageW
0x00007ff8ec2c5ec3 (Unity) MainMessageLoop
0x00007ff8ec2cbd12 (Unity) UnityMain
0x00007ff7f8b62fba (Unity) __scrt_common_main_seh
0x00007ff9749d259d (KERNEL32) BaseThreadInitThunk
0x00007ff9764eaf38 (ntdll) RtlUserThreadStart
it works fine with mono. no clue what’s happening. does anybody possibly know what all this is about?