IL2CPP Error

I’m getting the below (quoted) error when trying to build to iOS. I have tried switching to .NET 2.0 from .NET 2.0 subset and that hasn’t worked. I did update Visual Studio recently. I don’t know if that has anything to do with it, but I need to use it so a fix where I can have both on my machine would be best.

I’m unsure of what additional information to provide. Most other posts seem to say that this is a bug, but I thought I would try here first, just in case there’s I fix that I’m totally missing.

It looks like something in your project references the assembly at D:\Unity 5\ShinobiDeflect - 31.8 GC.dll. I’m not sure what that assembly is supposed to be though. It it not something shipped with Unity. Does that file name make any sense to you? Also, does that file exist on your machine?

1 Like

Thanks for responding so quickly! It made me look at the error more closely. It’s the comma I had in the project folder name! Lame mistake, but I have changed the name of the folder and it now builds successfully even though there is a “TLS Allocator ALLOC_TEMP_THREAD, underlying allocator ALLOC_TEMP_THREAD has unfreed allocations” error.

Thank you. Your response turned on the light bulb!

I’m glad you were able to correct the issue.

Note that the “TLS Allocator…” error is probably an indication of a different bug in Unity. Can you submit a bug report for this issue? We would like to correct it.

Apologies for the delay. Bug report for the “TLS Allocator…” error has been submitted.
Case 950621. Thanks!

Thanks! I appreciate it!

I’m getting the below (quoted) error when trying to build to iOS. (unity5.3.4f1).i do not know how to fix it. who can help me? i’m waitting.thanks

IL2CPP error (no further information about what managed code was being converted is available)
Additional information: Build a development build for more information. ���õ�Ŀ�귢�����쳣��

Failed running C:\Program Files\unity5.3.4\Unity\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --copy-level=None --emit-null-checks --enable-array-bounds-check --extra-types.file=“C:\Program Files\unity5.3.4\Unity\Editor\Data\il2cpp\il2cpp_default_extra_types.txt” --assembly=“F:\Projects\PetPlanet_2017.9.1\ClientForIOS_20180207\PetsPlanet\Temp\StagingArea\Data\Managed\Assembly-CSharp-firstpass.dll” --assembly=“F:\Projects\PetPlanet_2017.9.1\ClientForIOS_20180207\PetsPlanet\Temp\StagingArea\Data\Managed\Assembly-CSharp.dll” --assembly=“F:\Projects\PetPlanet_2017.9.1\ClientForIOS_20180207\PetsPlanet\Temp\StagingArea\Data\Managed\UnityEngine.UI.dll” --assembly=“F:\Projects\PetPlanet_2017.9.1\ClientForIOS_20180207\PetsPlanet\Temp\StagingArea\Data\Managed\CoreGameLib.dll” --assembly=“F:\Projects\PetPlanet_2017.9.1\ClientForIOS_20180207\PetsPlanet\Temp\StagingArea\Data\Managed\Tool.dll” --assembly=“F:\Projects\PetPlanet_2017.9.1\ClientForIOS_20180207\PetsPlanet\Temp\StagingArea\Data\Managed\PlayMaker.dll” --assembly=“F:\Projects\PetPlanet_2017.9.1\ClientForIOS_20180207\PetsPlanet\Temp\StagingArea\Data\Managed\UnityEngine.dll” --generatedcppdir=“F:\Projects\PetPlanet_2017.9.1\ClientForIOS_20180207\PetsPlanet\Temp\il2cppOutput\il2cppOutput”

stdout:
IL2CPP error (no further information about what managed code was being converted is available)
Additional information: Build a development build for more information. ���õ�Ŀ�귢�����쳣��
il2cpp.exe didn’t catch exception: System.Reflection.TargetInvocationException: ���õ�Ŀ�귢�����쳣�� —> System.NullReferenceException: δ�������������õ�������ʵ����
�� Unity.IL2CPP.GenericSharing.GenericSharingAnalysisComponent.GetSharedType(TypeReference type)
�� Unity.IL2CPP.GenericsCollection.GenericContextAwareVisitor.ProcessGenericType(GenericInstanceType type, InflatedCollectionCollector generics, GenericInstanceMethod contextMethod)
�� Unity.IL2CPP.GenericsCollection.GenericContextFreeVisitor.ProcessCustomAttributeTypeReferenceRecursive(TypeReference typeReference)
�� Unity.IL2CPP.GenericsCollection.GenericContextFreeVisitor.ProcessCustomAttributeArgument(CustomAttributeArgument customAttributeArgument)
�� Unity.IL2CPP.GenericsCollection.GenericContextFreeVisitor.ProcessCustomAttributeArgument(CustomAttributeArgument customAttributeArgument)
�� Unity.IL2CPP.GenericsCollection.GenericContextFreeVisitor.Visit(CustomAttributeArgument customAttributeArgument, Context context)
�� Unity.Cecil.Visitor.Visitor.Visit(CustomAttribute customAttribute, Context context)
�� Unity.Cecil.Visitor.Visitor.Visit(MethodDefinition methodDefinition, Context context)
�� Unity.IL2CPP.GenericsCollection.GenericContextFreeVisitor.Visit(MethodDefinition methodDefinition, Context context)
�� Unity.Cecil.Visitor.Visitor.Visit(TypeDefinition typeDefinition, Context context)
�� Unity.Cecil.Visitor.Visitor.Visit(ModuleDefinition moduleDefinition, Context context)
�� Unity.Cecil.Visitor.Visitor.Visit(AssemblyDefinition assemblyDefinition, Context context)
— �ڲ��쳣��ջ���ٵĽ�β —
�� System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)
�� System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)
�� System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)
�� System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)
�� Unity.Cecil.Visitor.Visitor.Visit[T](T node, Context context)
�� Unity.IL2CPP.GenericsCollection.GenericsCollector.CollectPerAssembly(AssemblyDefinition assembly)
�� System.Linq.Enumerable.WhereSelectListIterator2.MoveNext() �� Unity.IL2CPP.GenericsCollection.GenericsCollector.MergeCollections(IEnumerable1 collections)
�� Unity.IL2CPP.GenericsCollection.GenericsCollector.Collect(IEnumerable1 assemblies) �� Unity.IL2CPP.AssemblyConverter.PreProcessStage(InflatedCollectionCollector& genericsCollectionCollector, TypeDefinition[ ]& allTypeDefinitions) �� Unity.IL2CPP.AssemblyConverter.Apply() �� Unity.IL2CPP.AssemblyConverter.ConvertAssemblies(String[ ] assemblies, NPath outputDir) �� Unity.IL2CPP.AssemblyConverter.ConvertAssemblies(IEnumerable1 assemblyDirectories, IEnumerable`1 explicitAssemblies, NPath outputDir)
�� il2cpp.Program.DoRun(String[ ] args)
�� il2cpp.Program.Run(String[ ] args)
�� il2cpp.Program.Main(String[ ] args)
stderr:

δ���������쳣: System.Reflection.TargetInvocationException: ���õ�Ŀ�귢�����쳣�� —> System.NullReferenceException: δ�������������õ�������ʵ����
�� Unity.IL2CPP.GenericSharing.GenericSharingAnalysisComponent.GetSharedType(TypeReference type)
�� Unity.IL2CPP.GenericsCollection.GenericContextAwareVisitor.ProcessGenericType(GenericInstanceType type, InflatedCollectionCollector generics, GenericInstanceMethod contextMethod)
�� Unity.IL2CPP.GenericsCollection.GenericContextFreeVisitor.ProcessCustomAttributeTypeReferenceRecursive(TypeReference typeReference)
�� Unity.IL2CPP.GenericsCollection.GenericContextFreeVisitor.ProcessCustomAttributeArgument(CustomAttributeArgument customAttributeArgument)
�� Unity.IL2CPP.GenericsCollection.GenericContextFreeVisitor.ProcessCustomAttributeArgument(CustomAttributeArgument customAttributeArgument)
�� Unity.IL2CPP.GenericsCollection.GenericContextFreeVisitor.Visit(CustomAttributeArgument customAttributeArgument, Context context)
�� Unity.Cecil.Visitor.Visitor.Visit(CustomAttribute customAttribute, Context context)
�� Unity.Cecil.Visitor.Visitor.Visit(MethodDefinition methodDefinition, Context context)
�� Unity.IL2CPP.GenericsCollection.GenericContextFreeVisitor.Visit(MethodDefinition methodDefinition, Context context)
�� Unity.Cecil.Visitor.Visitor.Visit(TypeDefinition typeDefinition, Context context)
�� Unity.Cecil.Visitor.Visitor.Visit(ModuleDefinition moduleDefinition, Context context)
�� Unity.Cecil.Visitor.Visitor.Visit(AssemblyDefinition assemblyDefinition, Context context)
— �ڲ��쳣��ջ���ٵĽ�β —
�� System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)
�� System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)
�� System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)
�� System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)
�� Unity.Cecil.Visitor.Visitor.Visit[T](T node, Context context)
�� Unity.IL2CPP.GenericsCollection.GenericsCollector.CollectPerAssembly(AssemblyDefinition assembly)
�� System.Linq.Enumerable.WhereSelectListIterator2.MoveNext() �� Unity.IL2CPP.GenericsCollection.GenericsCollector.MergeCollections(IEnumerable1 collections)
�� Unity.IL2CPP.GenericsCollection.GenericsCollector.Collect(IEnumerable1 assemblies) �� Unity.IL2CPP.AssemblyConverter.PreProcessStage(InflatedCollectionCollector& genericsCollectionCollector, TypeDefinition[ ]& allTypeDefinitions) �� Unity.IL2CPP.AssemblyConverter.Apply() �� Unity.IL2CPP.AssemblyConverter.ConvertAssemblies(String[ ] assemblies, NPath outputDir) �� Unity.IL2CPP.AssemblyConverter.ConvertAssemblies(IEnumerable1 assemblyDirectories, IEnumerable`1 explicitAssemblies, NPath outputDir)
�� il2cpp.Program.DoRun(String[ ] args)
�� il2cpp.Program.Run(String[ ] args)
�� il2cpp.Program.Main(String[ ] args)

UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:94)
UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection1, String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:328) UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:203) UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action1, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:128)
UnityEditor.HostView:OnGUI()

Exception: C:\Program Files\unity5.3.4\Unity\Editor\Data\il2cpp/build/il2cpp.exe did not run properly!
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:96)
UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (ICollection1 userAssemblies, System.String outputDirectory, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:328) UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:203) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean developmentBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:128)
UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String stagingAreaDataManaged, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:429)
UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/ExtensionModule.cs:27)
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316)
UnityEditor.HostView:OnGUI()

Error building Player: Exception: C:\Program Files\unity5.3.4\Unity\Editor\Data\il2cpp/build/il2cpp.exe did not run properly!

Can you translate the characters in the error message which are not shown properly to English? That will help use understand the cause of the problem.

Hi, for this problem i found a solution in changing Managed Scripting Level in Player settings To LOW

Hi, I am too getting the same problem in unity version 2021 when trying to build with IL2CPP, I am getting the below error message.

C:\Program Files\Unity\Hub\Editor\2021.3.3f1\Editor\Data\il2cpp\build\deploy\il2cpp.exe --convert-to-cpp --assembly=Library/Bee/artifacts/Android/ManagedStripped/Assembly-CSharp.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Microsoft.CSharp.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Mono.Security.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/mscorlib.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Oculus.Interaction.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Oculus.Interaction.Samples.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Oculus.Platform.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Oculus.Spatializer.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Oculus.VR.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/System.Configuration.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/System.Core.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/System.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/System.Numerics.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/System.Xml.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.AdaptivePerformance.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.AdaptivePerformance.Samsung.Android.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.InputSystem.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.Postprocessing.Runtime.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.Profiling.Core.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.Subsystem.Registration.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.TextMeshPro.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.VisualScripting.Antlr3.Runtime.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.VisualScripting.Core.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.VisualScripting.Flow.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.XR.Interaction.Toolkit.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.XR.Management.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.XR.Oculus.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.XR.OpenXR.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.XR.OpenXR.Features.ConformanceAutomation.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.XR.OpenXR.Features.MockRuntime.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.XR.OpenXR.Features.OculusQuestSupport.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.XR.OpenXR.Features.RuntimeDebugger.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.AIModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.AndroidJNIModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.AnimationModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.AssetBundleModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.AudioModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.CoreModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.GridModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.ImageConversionModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.IMGUIModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.InputLegacyModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.InputModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.JSONSerializeModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.ParticleSystemModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.Physics2DModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.PhysicsModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.ScreenCaptureModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.SharedInternalsModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.SpatialTracking.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.SpriteShapeModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.SubsystemsModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.TerrainModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.TextCoreFontEngineModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.TextCoreTextEngineModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.TextRenderingModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.TilemapModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.UI.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.UIElementsModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.UIElementsNativeModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.UIModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.UnityAnalyticsModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.UnityWebRequestModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.VehiclesModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.VideoModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.VRModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.XRModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/VehicleBehaviour.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/VehiclePhysics.dll --data-folder=D:/Unity Projects/Autistica/Library/Bee/artifacts/Android/il2cppOutput/data --generatedcppdir=D:/Unity Projects/Autistica/Library/Bee/artifacts/Android/il2cppOutput/cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile=unityaot-linux --profiler-report --profiler-output-file=D:/Unity Projects/Autistica/Library/Bee/artifacts/il2cpp_conv_1ava.traceevents --print-command-line
Error: IL2CPP error (no further information about what managed code was being converted is available)
System.AggregateException: One or more errors occurred. (Value cannot be null. (Parameter 'definition'))
---> System.ArgumentNullException: Value cannot be null. (Parameter 'definition')
   at Unity.IL2CPP.DataModel.TypeContext.GetDef(TypeDefinition definition)
   at Unity.IL2CPP.DataModel.BuildLogic.TypeReferenceResolver.ResolveTypeReference(TypeReference typeReference, MappingContext mappingContext, CecilSourcedAssemblyData assembly)
   at Unity.IL2CPP.DataModel.BuildLogic.TypeReferenceResolver.ResolveAssemblyTypeReferences(CecilSourcedAssemblyData assembly, ReadOnlyHashSet`1 typeReferences, ReadOnlyHashSet`1 genericInstances)
   at Unity.IL2CPP.DataModel.BuildLogic.DataModelBuilder.<>c__DisplayClass14_0.<ResolveReferences>b__0(CecilSourcedAssemblyData data)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass33_0`2.<ForEachWorker>b__0(Int32 i)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`1.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`1.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
   at System.Threading.Tasks.TaskReplicator.Replica`1.ExecuteAction(Boolean& yieldedBeforeCompletion)
   at System.Threading.Tasks.TaskReplicator.Replica.Execute()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure)
   at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions, CancellationToken cancelToken, Exception otherException)
   at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IList`1 list, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
   at Unity.IL2CPP.DataModel.BuildLogic.Utils.ParallelHelpers.ForEach[TSource](IEnumerable`1 source, Action`1 func, Boolean enableSerial)
   at Unity.IL2CPP.DataModel.BuildLogic.DataModelBuilder.Build()
   at Unity.IL2CPP.AssemblyConversion.Phases.InitializePhase.Run(AssemblyConversionContext context)
   at Unity.IL2CPP.AssemblyConversion.Classic.ClassicConverter.Run(AssemblyConversionContext context)
   at Unity.IL2CPP.AssemblyConversion.AssemblyConverter.ConvertAssemblies(AssemblyConversionInputData data, AssemblyConversionParameters parameters, AssemblyConversionInputDataForTopLevelAccess dataForTopLevel)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Thanks in advance

Did you happen to skip running the API Updater on this project during an upgrade? We’ve seen this error before when an assembly in the project is using an old Unity API that no longer exists. That can happen when the API Updater step is skipped.