我正在使用Unity 5.1.2创建游戏。
直到上周我才能够构建到iOS。但是现在突然间,我得到了很多与il2cpp相关的错误,因为我无法构建错误。
尝试打开旧版本,安装了Unity 5.1.2 p1 .....但同样的错误不断出现(总共四个,如下所述):
--- IL2CPP错误(无法获得有关正在转换的托管代码的更多信息) 其他信息:构建开发版本以获取更多信息。无法解决汇编问题:' ... / v0.23(9月2日,版本= 0.0,文化=中立,PublicKeyToken = null'
--- 运行失败/ Applications / Unity 5.1.2 p1 / Unity.app / Contents / Frameworks / il2cpp / build / il2cpp.exe --copy-level = None --emit- null-checks --enable-array-bounds-check --extra-types.file =" / Applications / Unity 5.1.2 p1 / Unity.app / Contents / Frameworks / il2cpp / il2cpp_default_extra_types.txt" --assembly =" ... / v0.23(...)/.../ Temp / StagingArea / Data / Managed / Assembly-CSharp.dll" --assembly =" ... /温度/ StagingArea /数据/管理/ UnityEngine.UI.dll" --assembly =" ... /温度/ StagingArea /数据/管理/ UnityEngine.dll" --generatedcppdir =" ... /温度/ il2cppOutput / il2cppOutput" --builder = none
标准输出:
IL2CPP错误(没有关于正在转换的托管代码的更多信息可用)
其他信息:构建开发版本以获取更多信息。无法解决汇编:' ... / v0.23(9月2日,Version = 0.0,Culture = neutral,PublicKeyToken = null'
il2cpp.exe没有捕获异常:Mono.Cecil.AssemblyResolutionException:无法解析程序集:' ... / v0.23(9月2日,Version = 0.0,Culture = neutral,PublicKeyToken = null&# 39;
在Unity.IL2CPP.Common.AssemblyLoader.Resolve(IMetadataScope范围)[0x00000] in:0
在Unity.IL2CPP.Common.AssemblyLoader.Load(System.String name)[0x00000] in:0
在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 source)[0x00000] in:0
在Unity.IL2CPP.AssemblyConverter.Apply()[0x00000]中:0
在Unity.IL2CPP.AssemblyConverter.ConvertAssemblies(System.String []程序集,NiceIO.NPath outputDir,System.Collections.Generic.List`1 additionalCpp)[0x00000] in:0
标准错误:
未处理的例外情况:
Mono.Cecil.AssemblyResolutionException:无法解析汇编:&#39; ... / v0.23(9月2日,Version = 0.0,Culture = neutral,PublicKeyToken = null&#39;
在Unity.IL2CPP.Common.AssemblyLoader.Resolve(IMetadataScope范围)[0x00000] in:0
在Unity.IL2CPP.Common.AssemblyLoader.Load(System.String name)[0x00000] in:0
在Unity.IL2CPP.AssemblyConverter + c__AnonStorey1。&lt;&gt; 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 source)[0x00000] in:0
在Unity.IL2CPP.AssemblyConverter.Apply()[0x00000]中:0
在Unity.IL2CPP.AssemblyConverter.ConvertAssemblies(System.String []程序集,NiceIO.NPath outputDir,System.Collections.Generic.List 1 additionalCpp) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: '.../v0.23 (On Sep 2, Version=0.0, Culture=neutral, PublicKeyToken=null'
at Unity.IL2CPP.Common.AssemblyLoader.Resolve (IMetadataScope scope) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.Common.AssemblyLoader.Load (System.String name) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.AssemblyConverter+<Apply>c__AnonStorey1.<>m__0 (System.String path) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10
2 [System.String,Mono.Cecil.AssemblyDefinition] .MoveNext()[ 0x00000] in:0
at System.Linq.Enumerable.ToArray [AssemblyDefinition](IEnumerable 1 source) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.AssemblyConverter.Apply () [0x00000] in <filename unknown>:0
at Unity.IL2CPP.AssemblyConverter.ConvertAssemblies (System.String[] assemblies, NiceIO.NPath outputDir, System.Collections.Generic.List
1 additionalCpp)[0x00000] in:0
UnityEngine.Debug:LOGERROR(对象)
UnityEditorInternal.Runner:RunManagedProgram(String,String,String,CompilerOutputParserBase)(at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:66)
UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection 1, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:402)
UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:293)
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action
1,RuntimeClassRegistry)(在/Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:211)
UnityEditor.HostView:OnGUI()
--- 异常:/ Applications / Unity 5.1.2 p1 / 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:68)
UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp(ICollection 1 userAssemblies, System.String outputDirectory, System.String workingDirectory) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:402)
UnityEditorInternal.IL2CPPBuilder.Run () (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:293)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action
1 modifyOutputBeforeCompile,UnityEditor.RuntimeClassRegistry runtimeClassRegistry)(at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:211)
UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess(UnityEditor.iOS.iOSBuildPostprocessor pp,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)
UnityEditor.iOS.iOSBuildPostprocessor.PostProcess(BuildPostProcessArgs args)
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 /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316)
UnityEditor.HostView:OnGUI()
--- 构建播放器时出错:异常:/ Applications / Unity 5.1.2 p1 / Unity.app / Contents / Frameworks / il2cpp / build / il2cpp.exe无法正常运行!
已经在StackO和网络上尝试了很多解决方案,但到目前为止还没有解决方案。 非常感谢那里的任何帮助!
亲切的问候