美文网首页UE4
UE4:打包build失败, 报错“由于 Exception.T

UE4:打包build失败, 报错“由于 Exception.T

作者: 李留白 | 来源:发表于2021-07-29 11:09 被阅读0次

    使用了UE的版本控制git之后,打包一直失败,报错如下:

    ********** BUILD COMMAND STARTED **********
    UATHelper: Packaging (Windows (64-bit)): Running: D:\UE_4.26\Engine\Binaries\DotNET\UnrealBuildTool.exe HIA Win64 Development -Project=E:\UEProject\HIA\HIA.uproject  E:\UEProject\HIA\HIA.uproject -NoUBTMakefiles  -remoteini="E:\UEProject\HIA" -skipdeploy -Manifest=E:\UEProject\HIA\Intermediate\Build\Manifest.xml -NoHotReload -log="C:\Users\lichao\AppData\Roa
    ming\Unreal Engine\AutomationTool\Logs\D+UE_4.26\UBT-HIA-Win64-Development.txt"
    UATHelper: Packaging (Windows (64-bit)):   Using 'git status' to determine working set for adaptive non-unity build (E:\UEProject\HIA).
    UATHelper: Packaging (Windows (64-bit)):   
    UATHelper: Packaging (Windows (64-bit)):   
    UATHelper: Packaging (Windows (64-bit)):      由于 Exception.ToString() 失败,因此无法打印异常字符串。
    UATHelper: Packaging (Windows (64-bit)): Took 2.0373082s to run UnrealBuildTool.exe, ExitCode=-532462766
    UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool failed. See log for more details. (C:\Users\lichao\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+UE_4.26\UBT-HIA-Win64-Development.txt)
    UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=-532462766 (-532462766)
    UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
    PackagingResults: Error: Unknown Error
    
    

    网上搜了一下,发现都是说 将之前里面的关于git文件全部删除

    image.png

    但这样就没办法版本控制了,所以发现了新的解决方法:

    https://www.bilibili.com/read/cv9825086/

    在BuildConfiguration.xml将

    <SourceFileWorkingSet> 
    
        <Provider>None</Provider> 
    
        <RepositoryPath></RepositoryPath> 
    
        <GitPath></GitPath> 
    
    </SourceFileWorkingSet>
    

    配置加上即可,

    而xml所在目录: https://docs.unrealengine.com/4.26/zh-CN/ProductionPipelines/BuildTools/UnrealBuildTool/BuildConfiguration/

    除添加到 Config/UnrealBuildTool 文件夹中已生成UE4项目外,虚幻编译工具还会从以下位置(Windows系统)的XML配置文件读取设置:
    
    Engine/Saved/UnrealBuildTool/BuildConfiguration.xml
    
    User Folder/AppData/Roaming/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml
    
    My Documents/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml
    
    如果是Linux和Mac,则会从以下路径读取:
    
    /Users//.config//Unreal Engine/UnrealBuildTool/BuildConfiguration.xml
    
    /Users//Unreal Engine/UnrealBuildTool/BuildConfiguration.xml
    
    

    相关文章

      网友评论

        本文标题:UE4:打包build失败, 报错“由于 Exception.T

        本文链接:https://www.haomeiwen.com/subject/rmpxvltx.html