Demigiant / dotween

A Unity C# animation engine. HOTween v2
http://dotween.demigiant.com
Other
2.34k stars 351 forks source link

Unity3d build error for IL2CPP #242

Open unitymatrix opened 6 years ago

unitymatrix commented 6 years ago

the error occurs when I build package to xcode project IL2CPP error for method 'System.Void DG.Tweening.DOTweenPath::DORestart(System.Boolean)' in DOTweenPath.cs:224 Additional information: δ�������������õ�������ʵ����

and `Failed running D:\Program Files\Unity2017.1.0\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --development-mode --map-file-parser="D:\Program Files\Unity2017.1.0\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --assembly="F:\Work\DouquGame\trunk\Shizu\Client\SiguoProject\Temp\StagingArea\Data\Managed\Assembly-CSharp.dll" --assembly="F:\Work\DouquGame\trunk\Shizu\Client\SiguoProject\Temp\StagingArea\Data\Managed\UnityEngine.UI.dll" --assembly="F:\Work\DouquGame\trunk\Shizu\Client\SiguoProject\Temp\StagingArea\Data\Managed\UnityEngine.Analytics.dll" --assembly="F:\Work\DouquGame\trunk\Shizu\Client\SiguoProject\Temp\StagingArea\Data\Managed\UBase.dll" --assembly="F:\Work\DouquGame\trunk\Shizu\Client\SiguoProject\Temp\StagingArea\Data\Managed\DOTween.dll" --assembly="F:\Work\DouquGame\trunk\Shizu\Client\SiguoProject\Temp\StagingArea\Data\Managed\UnityEngine.dll" --assembly="F:\Work\DouquGame\trunk\Shizu\Client\SiguoProject\Temp\StagingArea\Data\Managed\System.dll" --generatedcppdir="F:\Work\DouquGame\trunk\Shizu\Client\SiguoProject\Temp\il2cppOutput\il2cppOutput"

stdout: IL2CPP error for method 'System.Void DG.Tweening.DOTweenPath::DORestart(System.Boolean)' in D:\DG_Develop__UNITY3_CLASSES_Holoville__DOTween_DOTween.Assembly\DOTweenPro\DOTweenPath.cs:224 Additional information: δ�������������õ�������ʵ���� il2cpp.exe didn't catch exception: System.NullReferenceException: δ�������������õ�������ʵ���� �� Unity.IL2CPP.MethodBodyWriter.GetMethodCallExpression(MethodReference callingMethod, MethodReference methodToCall, MethodReference unresolvedMethodtoCall, TypeResolver typeResolverForMethodToCall, MethodCallType callType, IRuntimeMetadataAccess runtimeMetadataAccess, VTableBuilder vTableBuilder, IEnumerable1 argumentArray, Boolean useArrayBoundsCheck, Func2 addUniqueSuffix) �� Unity.IL2CPP.MethodBodyWriter.CallExpressionFor(MethodReference callingMethod, MethodReference unresolvedMethodToCall, MethodCallType callType, List1 poppedValues, Func2 addUniqueSuffix, Boolean emitNullCheckForInvocation) �� Unity.IL2CPP.MethodBodyWriter.ProcessInstruction(Node node, InstructionBlock block, Instruction& ins) �� Unity.IL2CPP.MethodBodyWriter.GenerateCodeRecursive(Node node) �� Unity.IL2CPP.MethodBodyWriter.Generate() �� Unity.IL2CPP.MethodWriter.WriteMethodBody(MethodReference method, CppCodeWriter methodBodyWriter, IRuntimeMetadataAccess metadataAccess, ISourceAnnotationWriter sourceAnnotationWriter, IIcallMappingService icallMapping, VTableBuilder vtableBuilder) �� Unity.IL2CPP.MethodWriter.cAnonStorey0.<>m0(CppCodeWriter bodyWriter, MetadataUsage metadataUsage, MethodUsage methodUsage) �� Unity.IL2CPP.MethodWriter.WriteMethodWithMetadataInitialization(CppCodeWriter writer, String methodSignature, String methodFullName, Action3 writeMethodBody, String uniqueIdentifier) �� Unity.IL2CPP.MethodWriter.WriteMethodDefinition(CppCodeWriter writer, MethodReference method, IMethodCollector methodCollector, IMethodVerifier methodVerifier, ISourceAnnotationWriter sourceAnnotationWriter, IIcallMappingService icallMapping, VTableBuilder vtableBuilder) �� Unity.IL2CPP.SourceWriter.WriteMethodSourceFiles(NPath outputDirectory, SourceWritingContext sourceWritingContext, String fileName, IEnumerable1 typeList, IMethodCollector methodCollector, IInteropDataCollector interopDataCollector, Boolean writeMarshalingDefinitions) �� Unity.IL2CPP.SourceWriter.Write(NPath outputDir, SourceWritingContext sourceWritingContext, ReadOnlyCollection1 assemblyDefinitions, IMethodCollector methodCollector, IInteropDataCollector interopDataCollector) �� Unity.IL2CPP.AssemblyConverter.Apply() �� Unity.IL2CPP.AssemblyConverter.ConvertAssemblies(IEnumerable1 assemblyDirectories, IEnumerable`1 explicitAssemblies, NPath outputDir, NPath dataFolder, NPath symbolsFolder) �� il2cpp.Program.DoRun(String[] args) �� il2cpp.Program.Run(String[] args) �� il2cpp.Program.Main(String[] args) stderr:

δ���������쳣: System.NullReferenceException: δ�������������õ�������ʵ���� �� Unity.IL2CPP.MethodBodyWriter.GetMethodCallExpression(MethodReference callingMethod, MethodReference methodToCall, MethodReference unresolvedMethodtoCall, TypeResolver typeResolverForMethodToCall, MethodCallType callType, IRuntimeMetadataAccess runtimeMetadataAccess, VTableBuilder vTableBuilder, IEnumerable1 argumentArray, Boolean useArrayBoundsCheck, Func2 addUniqueSuffix) �� Unity.IL2CPP.MethodBodyWriter.CallExpressionFor(MethodReference callingMethod, MethodReference unresolvedMethodToCall, MethodCallType callType, List1 poppedValues, Func2 addUniqueSuffix, Boolean emitNullCheckForInvocation) �� Unity.IL2CPP.MethodBodyWriter.ProcessInstruction(Node node, InstructionBlock block, Instruction& ins) �� Unity.IL2CPP.MethodBodyWriter.GenerateCodeRecursive(Node node) �� Unity.IL2CPP.MethodBodyWriter.Generate() �� Unity.IL2CPP.MethodWriter.WriteMethodBody(MethodReference method, CppCodeWriter methodBodyWriter, IRuntimeMetadataAccess metadataAccess, ISourceAnnotationWriter sourceAnnotationWriter, IIcallMappingService icallMapping, VTableBuilder vtableBuilder) �� Unity.IL2CPP.MethodWriter.cAnonStorey0.<>m0(CppCodeWriter bodyWriter, MetadataUsage metadataUsage, MethodUsage methodUsage) �� Unity.IL2CPP.MethodWriter.WriteMethodWithMetadataInitialization(CppCodeWriter writer, String methodSignature, String methodFullName, Action3 writeMethodBody, String uniqueIdentifier) �� Unity.IL2CPP.MethodWriter.WriteMethodDefinition(CppCodeWriter writer, MethodReference method, IMethodCollector methodCollector, IMethodVerifier methodVerifier, ISourceAnnotationWriter sourceAnnotationWriter, IIcallMappingService icallMapping, VTableBuilder vtableBuilder) �� Unity.IL2CPP.SourceWriter.WriteMethodSourceFiles(NPath outputDirectory, SourceWritingContext sourceWritingContext, String fileName, IEnumerable1 typeList, IMethodCollector methodCollector, IInteropDataCollector interopDataCollector, Boolean writeMarshalingDefinitions) �� Unity.IL2CPP.SourceWriter.Write(NPath outputDir, SourceWritingContext sourceWritingContext, ReadOnlyCollection1 assemblyDefinitions, IMethodCollector methodCollector, IInteropDataCollector interopDataCollector) �� Unity.IL2CPP.AssemblyConverter.Apply() �� Unity.IL2CPP.AssemblyConverter.ConvertAssemblies(IEnumerable1 assemblyDirectories, IEnumerable`1 explicitAssemblies, NPath outputDir, NPath dataFolder, NPath symbolsFolder) �� il2cpp.Program.DoRun(String[] args) �� il2cpp.Program.Run(String[] args) �� il2cpp.Program.Main(String[] args)

UnityEngine.Debug:LogError(Object) UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128) UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73) UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List1, Action1, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:324) UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection1, String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:305) UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:151) UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action1, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34) UnityEditor.HostView:OnGUI()

Demigiant commented 6 years ago

Hi,

Sorry for the delay but I was working like crazy on the latest release. I read you solved this? I assume it wasn't a DOTween bug but something else, but can you tell me more?

Cheers, Daniele