I have made a plugin to generate lua binding code for UE4, I works in Editor well,but package failed, this is my demo:
https://github.com/asqbtcupid/unreal.lua/tree/demo_firstperson_umg
the failed infomation:
UATHelper: Packaging (Windows (64-bit)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject=E:/ue4projects/FirstPerson/FirstPerson.uproject BuildCookRun -nocompileeditor -nop4 -project=E:/ue4projects/FirstPerson/FirstPerson.uproject -cook -stage -archive -archivedirectory=E:/ -package -clientconfig=Development -ue4exe=UE4Editor-Cmd.exe -pa
k -prereqs -nodebuginfo -targetplatform=Win64 -build -CrashReporter -utf8output -compile
UATHelper: Packaging (Windows (64-bit)): Automation.Process: Setting up command environment.
UATHelper: Packaging (Windows (64-bit)): ScriptCompiler.FindAndCompileScriptModules: Compiling scripts.
UATHelper: Packaging (Windows (64-bit)): MSBuild: DotNETUtilities -> E:\UnrealEngine\Engine\Binaries\DotNET\DotNETUtilities.dll
UATHelper: Packaging (Windows (64-bit)): MSBuild: UnrealBuildTool -> E:\UnrealEngine\Engine\Binaries\DotNET\UnrealBuildTool.exe
UATHelper: Packaging (Windows (64-bit)): MSBuild: AutomationUtils.Automation -> E:\UnrealEngine\Engine\Binaries\DotNET\AutomationUtils.Automation.dll
UATHelper: Packaging (Windows (64-bit)): MSBuild: AllDesktop.Automation -> E:\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\AllDesktop\AllDesktop.Automation.dll
UATHelper: Packaging (Windows (64-bit)): MSBuild: Localization.Automation -> E:\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\Localization.Automation.dll
UATHelper: Packaging (Windows (64-bit)): MSBuild: OneSkyLocalization.Automation -> E:\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\OneSkyLocalization.Automation.dll
UATHelper: Packaging (Windows (64-bit)): MSBuild: AutomationScripts.Automation -> E:\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\AutomationScripts.Automation.dll
UATHelper: Packaging (Windows (64-bit)): MSBuild: Android.Automation -> E:\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\Android\Android.Automation.dll
UATHelper: Packaging (Windows (64-bit)): MSBuild: BuildGraph.Automation -> E:\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\BuildGraph.Automation.dll
UATHelper: Packaging (Windows (64-bit)): MSBuild: HTML5.Automation -> E:\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\HTML5\HTML5.Automation.dll
UATHelper: Packaging (Windows (64-bit)): MSBuild: MobileDeviceInterface -> E:\UnrealEngine\Engine\Binaries\DotNET\IOS\MobileDeviceInterface.dll
UATHelper: Packaging (Windows (64-bit)): MSBuild: IOS.Automation -> E:\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\IOS\IOS.Automation.dll
UATHelper: Packaging (Windows (64-bit)): MSBuild: Linux.Automation -> E:\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\Linux\Linux.Automation.dll
UATHelper: Packaging (Windows (64-bit)): MSBuild: Mac.Automation -> E:\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\Mac\Mac.Automation.dll
UATHelper: Packaging (Windows (64-bit)): MSBuild: TVOS.Automation -> E:\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\TVOS\TVOS.Automation.dll
UATHelper: Packaging (Windows (64-bit)): MSBuild: Win.Automation -> E:\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\Win.Automation.dll
UATHelper: Packaging (Windows (64-bit)): MSBuild: XLocLocalization.Automation -> E:\UnrealEngine\Engine\Binaries\DotNET\AutomationScripts\XLocLocalization.Automation.dll
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 6.277359s to run MSBuild.exe, ExitCode=0
UATHelper: Packaging (Windows (64-bit)): BuildCookRun.SetupParams: Setting up ProjectParams for E:\ue4projects\FirstPerson\FirstPerson.uproject
UATHelper: Packaging (Windows (64-bit)): Project.Build: ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe E:/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj /verbosity:minimal /nologo /target:Rebuild /property:Configuration=Development /property:Platform=AnyCPU
UATHelper: Packaging (Windows (64-bit)): MSBuild: C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4604,5): warning MSB3061: ��ɾ���ļ���E:\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\obj\Development\UnrealBuildTool.exe������·����E:\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\obj\Development\UnrealBuildTool.exe��
�ķ��ʱ��ܾ��� [E:\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
UATHelper: Packaging (Windows (64-bit)): MSBuild: DotNETUtilities -> E:\UnrealEngine\Engine\Binaries\DotNET\DotNETUtilities.dll
UATHelper: Packaging (Windows (64-bit)): MSBuild: CSC : error CS2012: Cannot open 'E:\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\obj\Development\UnrealBuildTool.exe' for writing -- '�ļ���E:\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\obj\Development\UnrealBuildTool.exe��������һ����ʹ�ã���˸ý��������ʴ��ļ���' [E:\UnrealEngine\Engine\Source\Prog
rams\UnrealBuildTool\UnrealBuildTool.csproj]
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 3.6052062s to run MSBuild.exe, ExitCode=1
UATHelper: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:1): C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe E:/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj /verbosity:minimal /nologo /target:Rebuild /pro
perty:Configuration=Development /property:Platform=AnyCPU. See logfile for details: 'BuildUBT-2017.02.10-18.24.51.txt'
UATHelper: Packaging (Windows (64-bit)): 在 AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback) 位置 E:\UnrealEngine\Engine\Source\Programs\AutomationTool\AutomationUtils\ProcessUtils.cs:行号 907
UATHelper: Packaging (Windows (64-bit)): 在 AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback) 位置 E:\UnrealEngine\Engine\Source\Programs\AutomationTool\AutomationUtils\ProcessUt
ils.cs:行号 860
UATHelper: Packaging (Windows (64-bit)): 在 AutomationTool.CommandUtils.MsBuild(CommandEnvironment Env, String Project, String Arguments, String LogName) 位置 E:\UnrealEngine\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildUtils.cs:行号 35
UATHelper: Packaging (Windows (64-bit)): 在 AutomationTool.UE4Build.PrepareUBT() 位置 E:\UnrealEngine\Engine\Source\Programs\AutomationTool\AutomationUtils\UE4Build.cs:行号 147
UATHelper: Packaging (Windows (64-bit)): 在 AutomationTool.UE4Build.BuildWithUBT(String TargetName, UnrealTargetPlatform TargetPlatform, String Config, FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity, Dictionary`2 EnvVars) 位置
E:\UnrealEngine\Engine\Source\Programs\AutomationTool\AutomationUtils\UE4Build.cs:行号 345
UATHelper: Packaging (Windows (64-bit)): 在 AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary`2 PlatformEnvVars, Nullable`1 InChangelistNumberOverride, Diction
ary`2 InTargetToManifest) 位置 E:\UnrealEngine\Engine\Source\Programs\AutomationTool\AutomationUtils\UE4Build.cs:行号 1495
UATHelper: Packaging (Windows (64-bit)): 在 Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) 位置 E:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\BuildProjectCommand.Automation.cs:行号 170
UATHelper: Packaging (Windows (64-bit)): 在 BuildCookRun.DoBuildCookRun(ProjectParams Params) 位置 E:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:行号 210
UATHelper: Packaging (Windows (64-bit)): 在 BuildCookRun.ExecuteBuild() 位置 E:\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:行号 43
UATHelper: Packaging (Windows (64-bit)): 在 AutomationTool.BuildCommand.Execute() 位置 E:\UnrealEngine\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:行号 27
UATHelper: Packaging (Windows (64-bit)): 在 AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands) 位置 E:\UnrealEngine\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:行号 547
UATHelper: Packaging (Windows (64-bit)): 在 AutomationTool.Automation.Process(String[] Arguments) 位置 E:\UnrealEngine\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:行号 517
UATHelper: Packaging (Windows (64-bit)): 在 AutomationTool.Program.MainProc(Object Param) 位置 E:\UnrealEngine\Engine\Source\Programs\AutomationTool\Program.cs:行号 135
UATHelper: Packaging (Windows (64-bit)): 在 AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param) 位置 E:\UnrealEngine\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:行号 704
UATHelper: Packaging (Windows (64-bit)): 在 AutomationTool.Program.Main() 位置 E:\UnrealEngine\Engine\Source\Programs\AutomationTool\Program.cs:行号 59
UATHelper: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults:Error: Error Unknown Error