【问题标题】:Unity iOS Build Error UnusedBytecodeStripper2.exe did not run properlyUnity iOS Build Error UnusedBytecodeStripper2.exe 没有正常运行
【发布时间】:2017-06-17 22:57:33
【问题描述】:

我在为 iOS 构建应用程序时收到此错误。脚本后端设置为 IL2CPP,架构是通用的。我知道我的项目中的一个插件使用了 zxing 库,这导致了这个错误。当我为 android 构建但无法获得 ios 构建时,我没有收到任何错误。除了删除插件还有其他方法吗?

运行 C:\Program Files\Unity\Editor\Data\Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe 失败 -out "C:\Users\Koray\Source\Repos\NewJoyiOS\NewJoyiOS\Temp\StagingArea\Data\Managed" -l 无 -c 链接 -x "C:\Program Files\Unity\Editor\Data\Tools\native_link.xml" -f "C:\Program Files\Unity\Editor\Data\il2cpp\LinkerDescriptors" -x "C :\Users\Koray\Source\Repos\NewJoyiOS\NewJoyiOS\Temp\StagingArea\Data\Managed..\platform_native_link.xml" -x "C:\Users\Koray\Source\Repos\NewJoyiOS\NewJoyiOS/Temp/StagingArea/数据/methods_pointedto_by_uievents.xml" -d "C:\Users\Koray\Source\Repos\NewJoyiOS\NewJoyiOS\Temp\StagingArea\Data\Managed" -a "C:\Users\Koray\Source\Repos\NewJoyiOS\NewJoyiOS\ Temp\StagingArea\Data\Managed\Assembly-CSharp-firstpass.dll" -a "C:\Users\Koray\Source\Repos\NewJoyiOS\NewJoyiOS\Temp\StagingArea\Data\Managed\Assembly-CSharp.dll" -a "C:\Users\Koray\Source\Repos\NewJoyiOS\NewJoyiOS\Temp\StagingArea\Data\Managed\Assembly-UnityScript.dll" -a "C:\Users\Koray\Source\Repos \NewJoyiOS\NewJoyiOS\Temp\StagingArea\Data\Managed\UnityEngine.UI.dll" -a "C:\Users\Koray\Source\Repos\NewJoyiOS\NewJoyiOS\Temp\StagingArea\Data\Managed\cscanner.dll" - a "C:\Users\Koray\Source\Repos\NewJoyiOS\NewJoyiOS\Temp\StagingArea\Data\Managed\Google.ProtocolBuffers.dll" -a "C:\Users\Koray\Source\Repos\NewJoyiOS\NewJoyiOS\Temp \StagingArea\Data\Managed\Google.ProtocolBuffers.Serialization.dll" -a "C:\Users\Koray\Source\Repos\NewJoyiOS\NewJoyiOS\Temp\StagingArea\Data\Managed\NativeToolkitWP8.dll"

标准输出: Mono CIL 链接器中的致命错误 Mono.Cecil.AssemblyResolutionException:无法解析程序集:'zxing.unity,版本 = 0.12.0.0,文化 = 中性,PublicKeyToken = null' 在 Mono.Linker.LinkContext.Resolve(IMetadataScope 范围)[0x00000] 中:0 在 Mono.Linker.Steps.ResolveFromXmlStep.ProcessReferences(Mono.Cecil.AssemblyDefinition 程序集,Mono.Linker.LinkContext 上下文)[0x00000] 中:0 在 Mono.Linker.Steps.ResolveFromXmlStep.GetAssembly(Mono.Linker.LinkContext 上下文,System.String assemblyName)[0x00000] 中:0 在 Mono.Linker.Steps.ResolveFromXmlStep.ProcessAssemblies(Mono.Linker.LinkContext 上下文,System.Xml.XPath.XPathNodeIterator 迭代器)[0x00000] 中:0 在 Mono.Linker.Steps.ResolveFromXmlStep.Process () [0x00000] in :0 在 Mono.Linker.Steps.BaseStep.Process(Mono.Linker.LinkContext 上下文)[0x00000] 中:0 在 Mono.Linker.Pipeline.Process(Mono.Linker.LinkContext 上下文)[0x00000] 中:0 在 Mono.Linker.Driver.Run () [0x00000] in :0 在 Mono.Linker.Driver.RunDriver(Mono.Linker.Driver 驱动程序)[0x00000] 中:0 标准错误:

UnityEngine.Debug:LogError(Object) UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase) (在 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:66) UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable1, String&, String&, String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:192) UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String, String, String&, String&, String, String, IEnumerable1) (在 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:185) UnityEditorInternal.AssemblyStripper:Strip(String, String, String&, String&, String, String, IEnumerable1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:136) UnityEditorInternal.AssemblyStripper:Strip(String[], String[], String, String, String&, String&, String, String, IEnumerable1) (在 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:121) UnityEditorInternal.IL2CPPBuilder:RunAssemblyStripper(IEnumerable, String, String[], String[], String) (在 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:477) UnityEditorInternal.IL2CPPBuilder:StripAssemblies(String[], String) (在 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:465) UnityEditorInternal.IL2CPPBuilder:Run() (在 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:293) UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (在 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:211) UnityEditor.HostView:OnGUI()

【问题讨论】:

    标签: c# ios unity3d mono il2cpp


    【解决方案1】:

    项目中有zxing.unity.dll文件吗?看起来缺少该程序集。我怀疑项目中有一个引用该程序集的 link.xml 文件。如果你删除那个 link.xml 文件,事情可能会奏效。

    请注意,这可能适用于 Android/Mono,因为默认情况下未启用托管代码剥离,因此项目中的 link.xml 文件将被忽略。

    作为参考,有更多关于Unityhere的link.xml文件的细节。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-03-22
      • 1970-01-01
      • 2020-03-29
      • 1970-01-01
      • 2016-04-23
      • 2019-03-10
      • 2021-10-13
      相关资源
      最近更新 更多