We try to build for IL2CPP using 2018.2.13f1 but we get the following error:
Failed running /Applications/Unity/Hub/Editor/2018.2.13f1/Unity.app/Contents/il2cpp/build/il2cppcore/il2cppcore.dll --convert-to-cpp --emit-null-checks --enable-array-bounds-check --compile-cpp --libil2cpp-static --platform=“MacOSX” --architecture=“x64” --configuration=“Release” --outputpath=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Native/GameAssembly.dylib” --cachedirectory=“/Users/john/Documents/llshooter/Assets/…/Library/il2cpp_cache” --map-file-parser=“/Applications/Unity/Hub/Editor/2018.2.13f1/Unity.app/Contents/Tools/MapFileParser/MapFileParser” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/Assembly-CSharp-firstpass.dll” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/Unity.TextMeshPro.dll” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/CatlikeCoding.NumberFlow.dll” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/AppStoreSettings.dll” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/DOTweenPro.dll” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/DOTween.dll” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/Sirenix.Serialization.Config.dll” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/Facebook.Unity.Settings.dll” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/UnityEngine.Analytics.dll” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/UnityEngine.dll” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/Sirenix.OdinInspector.Attributes.dll” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/Sirenix.Serialization.AOTGenerated.dll” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/Sirenix.Serialization.dll” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/Sirenix.Utilities.dll” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/Stores.dll” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/System.dll” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/UnityEngine.Purchasing.dll” --assembly=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/mscorlib.dll” --generatedcppdir=“/Users/john/Documents/llshooter/Temp/StagingArea/Data/il2cppOutput”
stdout:
IL2CPP error for method 'System.String <>__AnonType02::ToString()' in assembly '/Users/john/Documents/llshooter/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll'* *Additional information: Build a development build for more information. Exception has been thrown by the target of an invocation.* *il2cpp.exe didn't catch exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Exception of type 'System.Exception' was thrown.* *at Unity.IL2CPP.GenericsCollection.Inflater.InflateType(GenericContext context, TypeReference typeReference)* *at Unity.IL2CPP.GenericsCollection.Inflater.ConstructGenericType(GenericContext context, TypeDefinition typeDefinition, IEnumerable
1 genericArguments)
at Unity.IL2CPP.GenericsCollection.Inflater.InflateType(GenericContext context, GenericInstanceType genericInstanceType)
at Unity.IL2CPP.GenericsCollection.GenericContextFreeVisitor.Visit(MethodReference methodReference, Context context)
at Unity.IL2CPP.GenericsCollection.GenericContextFreeVisitor.Visit(Instruction instruction, Context context)
at Unity.Cecil.Visitor.Visitor.Visit(MethodBody methodBody, Context context)
at Unity.Cecil.Visitor.Visitor.Visit(MethodDefinition methodDefinition, Context context)
at Unity.IL2CPP.GenericsCollection.GenericContextFreeVisitor.Visit(MethodDefinition methodDefinition, Context context)
at Unity.Cecil.Visitor.Visitor.Visit(TypeDefinition typeDefinition, Context context)
at Unity.Cecil.Visitor.Visitor.Visit(ModuleDefinition moduleDefinition, Context context)
at Unity.Cecil.Visitor.Visitor.Visit(AssemblyDefinition assemblyDefinition, Context context)
— End of inner exception stack trace —
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)
at Unity.Cecil.Visitor.Visitor.Visit[T](T node, Context context)
at Unity.IL2CPP.GenericsCollection.GenericsCollector.CollectPerAssembly(IInteropDataCollector interopDataCollector, AssemblyDefinition assembly)
at System.Linq.Enumerable.SelectIListIterator2.MoveNext()* *at Unity.IL2CPP.GenericsCollection.GenericsCollector.MergeCollections(IEnumerable
1 collections)
at Unity.IL2CPP.AssemblyConverter.Apply()
at Unity.IL2CPP.AssemblyConverter.ConvertAssemblies(IEnumerable1 assemblyDirectories, IEnumerable
1 explicitAssemblies, NPath outputDir, NPath dataFolder, NPath symbolsFolder, NPath executableAssembiesFolder, NPath monoLibFolder, NPath monoEtcFolder, NPath[ ] searchDirectories, String entryAssemblyName, NPath[ ] extraTypesFiles)
at il2cpp.Program.DoRun(String[ ] args)
at il2cpp.Program.Run(String[ ] args)
at il2cpp.Program.Main(String[ ] args)
stderr:
Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.Exception: Exception of type ‘System.Exception’ was thrown.
at Unity.IL2CPP.GenericsCollection.Inflater.InflateType(GenericContext context, TypeReference typeReference)
at Unity.IL2CPP.GenericsCollection.Inflater.ConstructGenericType(GenericContext context, TypeDefinition typeDefinition, IEnumerable1 genericArguments)* *at Unity.IL2CPP.GenericsCollection.Inflater.InflateType(GenericContext context, GenericInstanceType genericInstanceType)* *at Unity.IL2CPP.GenericsCollection.GenericContextFreeVisitor.Visit(MethodReference methodReference, Context context)* *at Unity.IL2CPP.GenericsCollection.GenericContextFreeVisitor.Visit(Instruction instruction, Context context)* *at Unity.Cecil.Visitor.Visitor.Visit(MethodBody methodBody, Context context)* *at Unity.Cecil.Visitor.Visitor.Visit(MethodDefinition methodDefinition, Context context)* *at Unity.IL2CPP.GenericsCollection.GenericContextFreeVisitor.Visit(MethodDefinition methodDefinition, Context context)* *at Unity.Cecil.Visitor.Visitor.Visit(TypeDefinition typeDefinition, Context context)* *at Unity.Cecil.Visitor.Visitor.Visit(ModuleDefinition moduleDefinition, Context context)* *at Unity.Cecil.Visitor.Visitor.Visit(AssemblyDefinition assemblyDefinition, Context context)* *--- End of inner exception stack trace ---* *at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)* *at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)* *at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)* *at Unity.Cecil.Visitor.Visitor.Visit[T](T node, Context context)* *at Unity.IL2CPP.GenericsCollection.GenericsCollector.CollectPerAssembly(IInteropDataCollector interopDataCollector, AssemblyDefinition assembly)* *at System.Linq.Enumerable.SelectIListIterator
2.MoveNext()
at Unity.IL2CPP.GenericsCollection.GenericsCollector.MergeCollections(IEnumerable1 collections)* *at Unity.IL2CPP.AssemblyConverter.Apply()* *at Unity.IL2CPP.AssemblyConverter.ConvertAssemblies(IEnumerable
1 assemblyDirectories, IEnumerable`1 explicitAssemblies, NPath outputDir, NPath dataFolder, NPath symbolsFolder, NPath executableAssembiesFolder, NPath monoLibFolder, NPath monoEtcFolder, NPath[ ] searchDirectories, String entryAssemblyName, NPath[ ] extraTypesFiles)
at il2cpp.Program.DoRun(String[ ] args)
at il2cpp.Program.Run(String[ ] args)
at il2cpp.Program.Main(String[ ] args)
at Program.Main(String[ ] args)