I tried to switch my project with IL2CPP, but it alway failed, is there a specific reason for this?
At the beginning, it outputs below
Failed running /Applications/Unity/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe -out “/Users/zhaoye/xlj_main/trunk/main/Temp/StagingArea/Data/Managed” -l none -c link -x “/Applications/Unity/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper/native_link.xml” -f “/Applications/Unity/Unity.app/Contents/Frameworks/il2cpp/LinkerDescriptors” -x “/Users/zhaoye/xlj_main/trunk/main/Temp/StagingArea/Data/Managed/…/platform_native_link.xml” -x “/Users/zhaoye/xlj_main/trunk/main/Temp/StagingArea/Data/methods_pointedto_by_uievents.xml” -d “/Users/zhaoye/xlj_main/trunk/main/Temp/StagingArea/Data/Managed” -a “/Users/zhaoye/xlj_main/trunk/main/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll” -a “/Users/zhaoye/xlj_main/trunk/main/Temp/StagingArea/Data/Managed/Assembly-UnityScript.dll” -a “/Users/zhaoye/xlj_main/trunk/main/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll” -a “/Users/zhaoye/xlj_main/trunk/main/Temp/StagingArea/Data/Managed/CommonLib.dll” -a “/Users/zhaoye/xlj_main/trunk/main/Temp/StagingArea/Data/Managed/Config2.dll” -a “/Users/zhaoye/xlj_main/trunk/main/Temp/StagingArea/Data/Managed/LumenWorks.Framework.IO.dll” -a “/Users/zhaoye/xlj_main/trunk/main/Temp/StagingArea/Data/Managed/Microsoft.QualityTools.Testing.Fakes.dll” -a “/Users/zhaoye/xlj_main/trunk/main/Temp/StagingArea/Data/Managed/ProtoCmd.dll” -a “/Users/zhaoye/xlj_main/trunk/main/Temp/StagingArea/Data/Managed/MatrixWrapper.dll”
stdout:
Fatal error in Mono CIL Linker
System.Exception: Error processing method: ‘System.Void GUIWrapper::GetExternalStorageDirectory()’ in assembly: ‘MatrixWrapper.dll’ —> Mono.Cecil.ResolutionException: Failed to resolve UnityEngine.AndroidJavaClass
at Mono.Linker.Steps.MarkStep.MarkType (Mono.Cecil.TypeReference reference) [0x00000] in :0
at Mono.Linker.Steps.MarkStep.MarkMethodBody (Mono.Cecil.Cil.MethodBody body) [0x00000] in :0
at Mono.Linker.Steps.MarkStep.ProcessMethod (Mono.Cecil.MethodDefinition method) [0x00000] in :0
at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x00000] in :0
— End of inner exception stack trace —
at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x00000] in :0
at Mono.Linker.Steps.MarkStep.Process () [0x00000] in :0
at Mono.Linker.Steps.MarkStep.Process (Mono.Linker.LinkContext context) [0x00000] in :0
at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x00000] in :0
at Mono.Linker.Driver.Run () [0x00000] in :0
at Mono.Linker.Driver.RunDriver (Mono.Linker.Driver driver) [0x00000] in :0
stderr:
UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:66)
UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable1, String&, String&, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:192) UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String, String, String&, String&, String, String, IEnumerable
1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:185)
UnityEditorInternal.AssemblyStripper:Strip(String, String, String&, String&, String, String, IEnumerable1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:136) UnityEditorInternal.AssemblyStripper:Strip(String[ ], String[ ], String, String, String&, String&, String, String, IEnumerable
1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:121)
UnityEditorInternal.IL2CPPBuilder:RunAssemblyStripper(IEnumerable, String, String[ ], String[ ], String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:445)
UnityEditorInternal.IL2CPPBuilder:StripAssemblies(String[ ], String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:433)
UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:273)
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:211)
UnityEditor.HostView:OnGUI()