Unity3D2018.3版本打包UWP遇到IOException: Win32 IO return
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Unity3D2018.3版本打包UWP遇到IOException: Win32 IO return相关的知识,希望对你有一定的参考价值。
Unity3D2018.3版本不是很稳定,在需要Target SDK Version为10.0.17134和10.0.17763版本时,打包UWP会遇到
IOException: Win32 IO returned 234. Path: C:Program Files (x86)Windows Kits10References10.0.17763.0Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingContract2.0.0.0Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingContract.winmd" or "TempStagingAreaDataManagedWindows.ApplicationModel.CommunicationBlocking.CommunicationBlockingContract.winmd
System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
PostProcessUAPIl2Cpp.CopyFrameworkAssemblies () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessUAPIl2Cpp.cs:339)
PostProcessWinRT.Process () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:160)
UnityEditor.WSA.BuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:122)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
的问题,大致就是Unity在打包UWP时需要从windows 10SDK中复制一个文件失败,导致缺失。
上谷歌搜了一下,有一种解决办法就是升级一个小版本在进行打包,有些好使,有些不好使,还有说是需要的那个文件名字太长不能识别。
在这种情况下,我将
C:Program Files (x86)Windows Kits10References10.0.17134.0Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingContract2.0.0.0
中的文件删掉,从新打包,很完美的就打包出来了,是没错误的。
以上是关于Unity3D2018.3版本打包UWP遇到IOException: Win32 IO return的主要内容,如果未能解决你的问题,请参考以下文章