我必须使用 Unity 5.2.3 更新 App Store 上已经上线的游戏。
我收到了很多与 il2cpp 相关的错误,因为这些错误我无法再为 iOS 构建......这已经持续了 3 个月......已经尝试了从 5.1.2 到 5.2.3 的所有 Unity 版本。 ...正如您可以想象的那样,这对我们的业务不利。
之前在 Unity 论坛上发布过此问题并发布了错误报告,但仍未找到此问题的解决方案。
我再次发布在 Unity3D 中为 iOS 构建时出现的这些错误:
ERROR 1/4:
IL2CPP 错误(没有关于正在转换的托管代码的更多信息) 附加信息:构建开发版本以获取更多信息。无法解析程序集:“……项目路径……(12 月 9 日,版本=0.0,文化=中性,PublicKeyToken=null”
ERROR 2/4:
运行失败 /Applications/Unity 5.2.3/Unity.app/Contents/Frameworks/il2cpp/build/il2cpp.exe --convert-to-cpp --copy-level=None --emit-null-checks --enable- array-bounds-check --extra-types.file="/Applications/Unity 5.2.3/Unity.app/Contents/Frameworks/il2cpp/il2cpp_default_extra_types.txt" --assembly="…项目路径… /Temp/StagingArea/ Data/Managed/Assembly-CSharp-firstpass.dll" --assembly…项目路径… /Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" --assembly…项目路径… /Temp/StagingArea/Data/Managed/ UnityEngine.UI.dll" --assembly="…项目路径… /Temp/StagingArea/Data/Managed/UnityEngine.dll" --generatedcppdir="…项目路径… /Temp/il2cppOutput/il2cppOutput"
标准输出:IL2CPP 错误(没有关于正在转换的托管代码的更多信息)附加信息:构建开发版本以获取更多信息。无法解析程序集:'...项目路径...(12 月 9 日,版本 = 0.0,Culture=neutral,PublicKeyToken=null' il2cpp.exe 未捕获异常:Mono.Cecil.AssemblyResolutionException:无法解析程序集:'...项目路径...(在 12 月 9 日,版本 = 0.0,文化 = 中性,PublicKeyToken=null' 在 Unity.IL2CPP.Common.AssemblyLoader.Resolve (IMetadataScope 范围)[0x00000] 在:0 在 Unity.IL2CPP.Common.AssemblyLoader.Load ( System.String name) [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter+c__AnonStorey1.<>m__0 (System.String path) [0x00000] in :0 at System.Linq.Enumerable+c__Iterator10
2[System.String,Mono.Cecil.AssemblyDefinition].MoveNext () [0x00000] in <filename unknown>:0 at System.Linq.Enumerable.ToArray[AssemblyDefinition] (IEnumerable
1 来源)[0x00000] in :0 at Unity.IL2CPP.AssemblyConverter.CollectAssembliesToConvert () [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter.Apply () [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter.ConvertAssemblies ( System.String[] 程序集,NiceIO.NPath outputDir) [0x00000] in :0 stderr:未处理的异常:Mono.Cecil.AssemblyResolutionException:无法解析程序集:'...项目路径...(12 月 9 日,版本=0.0,Culture=neutral,PublicKeyToken=null' at Unity.IL2CPP.Common.AssemblyLoader.Resolve(IMetadataScope 范围) [0x00000] in :0 at Unity.IL2CPP.Common.AssemblyLoader.Load (System.String name) [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter+c__AnonStorey1.<>m__0 (System.String path) [0x00000] in :0 在 System.Linq.Enumerable+c__Iterator10
2[System.String,Mono.Cecil.AssemblyDefinition].MoveNext () [0x00000] in <filename unknown>:0 at System.Linq.Enumerable.ToArray[AssemblyDefinition] (IEnumerable
1 来源)[0x00000] in :0 at Unity.IL2CPP.AssemblyConverter.CollectAssembliesToConvert () [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter.Apply () [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter.ConvertAssemblies ( System.String[] 程序集,NiceIO.NPath outputDir) [0x00000] in :0 [ERROR] FATAL UNHANDLED EXCEPTION: Mono.Cecil.AssemblyResolutionException: 无法解析程序集:'…项目路径…(12 月 9 日,版本 = 0.0, Culture=neutral, PublicKeyToken=null' 在 Unity.IL2CPP.Common.AssemblyLoader.Resolve(IMetadataScope 范围)[0x00000] 在 Unity.IL2CPP.Common.AssemblyLoader.Load(System.String 名称)[0x00000] 在 :0在 Unity.IL2CPP.AssemblyConverter+c__AnonStorey1.<>m__0 (System.String 路径) [0x00000] in :0 在 System.Linq.Enumerable+c__Iterator102[System.String,Mono.Cecil.AssemblyDefinition].MoveNext () [0x00000] in <filename unknown>:0 at System.Linq.Enumerable.ToArray[AssemblyDefinition] (IEnumerable
1 来源)[0x00000] in :0 at Unity.IL2CPP.AssemblyConverter.CollectAssembliesToConvert () [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter.Apply () [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter.ConvertAssemblies ( System.String[] 程序集,NiceIO.NPath outputDir) [0x00000] in :0UnityEngine.Debug:LogError(Object) UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase) (在 /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:68) UnityEditorInternal .IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection
1, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:417) UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:301) UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action
1, RuntimeClassRegistry) (在/Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:218) UnityEditor.HostView:OnGUI()
ERROR 3/4:
例外:/Applications/Unity 5.2.3/Unity.app/Contents/Frameworks/il2cpp/build/il2cpp.exe 没有正常运行!UnityEditorInternal.Runner.RunManagedProgram(System.String exe、System.String args、System.String workingDirectory、UnityEditor.Scripting.Compilers.CompilerOutputParserBase 解析器)(位于 /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp /IL2CPPUtils.cs:70) UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (ICollection
1 userAssemblies, System.String outputDirectory, System.String workingDirectory) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:417) UnityEditorInternal.IL2CPPBuilder.Run () (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:301) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action
1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (在/Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:218) UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (UnityEditor.iOS.iOSBuildPostprocessor pp, BuildTarget 目标,System.String stagingAreaData,System.String stagingArea,System.String stagingAreaDataManaged,System.String playerPackage,System.String installPath,System.String companyName,System.String productName,BuildOptions 选项,UnityEditor.RuntimeClassRegistry usedClassRegistry) UnityEditor.iOS。 iOSBuildPostprocessor.PostProcess(BuildPostProcessArgs args)UnityEditor.PostprocessBuildPlayer.Postprocess(BuildTarget 目标,System.String installPath,System.String companyName,System.String productName,Int32 宽度,Int32 高度,System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (在/Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316) UnityEditor.HostView:OnGUI()
ERROR 4/4:
构建播放器时出错:异常:/Applications/Unity 5.2.3/Unity.app/Contents/Frameworks/il2cpp/build/il2cpp.exe 没有正常运行!
在这个问题上我需要帮助,否则我们可能不得不放弃这个项目,并使用其他游戏引擎制作未来的游戏项目!