Failed to package iOS (code-based project with remote build)

Failed to package for iOS (code-based project with remote build).

Error on code compile step:

UATHelper: Packaging (iOS): UnrealBuildTool: In file included from /Users/admin/UE4/Builds/WORKPC-1/C/Workspace/YIT_AR_31_01_2017/UE4/YIT_AR_31_01_2017/Source/YIT_AR_31_01_2017/YIT_AR_31_01_2017GameModeBase.cpp:3:
UATHelper: Packaging (iOS): UnrealBuildTool:
UATHelper: Packaging (iOS): UnrealBuildTool: In file included from /Users/admin/UE4/Builds/WORKPC-1/C/Workspace/YIT_AR_31_01_2017/UE4/YIT_AR_31_01_2017/Source/YIT_AR_31_01_2017/YIT_AR_31_01_2017.cpp:3:
UATHelper: Packaging (iOS): UnrealBuildTool: In file included from /Users/admin/UE4/Builds/WORKPC-1/C/Workspace/YIT_AR_31_01_2017/UE4/YIT_AR_31_01_2017/Source/YIT_AR_31_01_2017/YIT_AR_31_01_2017.h:5:
UATHelper: Packaging (iOS): UnrealBuildTool:
UATHelper: Packaging (iOS): UnrealBuildTool:
UATHelper: Packaging (iOS): UnrealBuildTool: In file included from /Users/admin/UE4/Builds/WORKPC-1/C/Workspace/YIT_AR_31_01_2017/UE4/YIT_AR_31_01_2017/Source/YIT_AR_31_01_2017/YIT_AR_31_01_2017.h:5:
UATHelper: Packaging (iOS): UnrealBuildTool: In file included from /Users/admin/UE4/Builds/WORKPC-1/C/Epic Games/UE_4.16/Engine/Source/Runtime/Engine/Public/Engine.h:12:
UATHelper: Packaging (iOS): UnrealBuildTool:
UATHelper: Packaging (iOS): UnrealBuildTool:
UATHelper: Packaging (iOS): UnrealBuildTool: In file included from /Users/admin/UE4/Builds/WORKPC-1/C/Epic Games/UE_4.16/Engine/Source/Runtime/Engine/Public/Engine.h:12:
UATHelper: Packaging (iOS): UnrealBuildTool: /Users/admin/UE4/Builds/WORKPC-1/C/Epic Games/UE_4.16/Engine/Source/Runtime/Core/Public/Core.h:121:10: fatal error: ‘Features/IModularFeature.h’ file not found
UATHelper: Packaging (iOS): UnrealBuildTool:
UATHelper: Packaging (iOS): UnrealBuildTool:
UATHelper: Packaging (iOS): UnrealBuildTool: /Users/admin/UE4/Builds/WORKPC-1/C/Epic Games/UE_4.16/Engine/Source/Runtime/Core/Public/Core.h:121:10: fatal error: ‘Features/IModularFeature.h’ file not found
UATHelper: Packaging (iOS): UnrealBuildTool: #include “Features/IModularFeature.h”
UATHelper: Packaging (iOS): UnrealBuildTool:
UATHelper: Packaging (iOS): UnrealBuildTool:
UATHelper: Packaging (iOS): UnrealBuildTool: #include “Features/IModularFeature.h”
UATHelper: Packaging (iOS): UnrealBuildTool: ^
UATHelper: Packaging (iOS): UnrealBuildTool:
UATHelper: Packaging (iOS): UnrealBuildTool:
UATHelper: Packaging (iOS): UnrealBuildTool: ^
UATHelper: Packaging (iOS): UnrealBuildTool: 1 error generated.
UATHelper: Packaging (iOS): UnrealBuildTool:
UATHelper: Packaging (iOS): UnrealBuildTool: 1 error generated.
UATHelper: Packaging (iOS): UnrealBuildTool: Execute took 00:00:09.5710874
UATHelper: Packaging (iOS): UnrealBuildTool: In file included from /Users/admin/UE4/Builds/WORKPC-1/C/Workspace/YIT_AR_31_01_2017/UE4/YIT_AR_31_01_2017/Intermediate/Build/IOS/UE4/Inc/YIT_AR_31_01_2017/YIT_AR_31_01_2017.generated.cpp:8:
UATHelper: Packaging (iOS): UnrealBuildTool:
UATHelper: Packaging (iOS): UnrealBuildTool: In file included from /Users/admin/UE4/Builds/WORKPC-1/C/Workspace/YIT_AR_31_01_2017/UE4/YIT_AR_31_01_2017/Source/YIT_AR_31_01_2017/YIT_AR_31_01_2017.h:5:
UATHelper: Packaging (iOS): UnrealBuildTool:
UATHelper: Packaging (iOS): UnrealBuildTool: In file included from /Users/admin/UE4/Builds/WORKPC-1/C/Epic Games/UE_4.16/Engine/Source/Runtime/Engine/Public/Engine.h:12:
UATHelper: Packaging (iOS): UnrealBuildTool:
UATHelper: Packaging (iOS): UnrealBuildTool: /Users/admin/UE4/Builds/WORKPC-1/C/Epic Games/UE_4.16/Engine/Source/Runtime/Core/Public/Core.h:121:10: fatal error: ‘Features/IModularFeature.h’ file not found
UATHelper: Packaging (iOS): UnrealBuildTool:
UATHelper: Packaging (iOS): UnrealBuildTool: #include “Features/IModularFeature.h”
UATHelper: Packaging (iOS): UnrealBuildTool:
UATHelper: Packaging (iOS): UnrealBuildTool: ^
UATHelper: Packaging (iOS): UnrealBuildTool:
UATHelper: Packaging (iOS): UnrealBuildTool: 1 error generated.
UATHelper: Packaging (iOS): UnrealBuildTool: Doing bash -c ‘if [ -e “/Users/admin/UE4/Builds/WORKPC-1/C/Workspace/YIT_AR_31_01_2017/UE4/YIT_AR_31_01_2017/Binaries/IOS/YIT_AR_31_01_2017” ]; then eval $(stat -s “/Users/admin/UE4/Builds/WORKPC-1/C/Workspace/YIT_AR_31_01_2017/UE4/YIT_AR_31_01_2017/Binaries/IOS/YIT_AR_31_01_2017”) && echo $st_mtime,$st_size; fi’
UATHelper: Packaging (iOS): UnrealBuildTool: Execute took 00:00:00.4935033
UATHelper: Packaging (iOS): UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: /Users/admin/UE4/Builds/WORKPC-1/C/Workspace/YIT_AR_31_01_2017/UE4/YIT_AR_31_01_2017/Binaries/IOS/YIT_AR_31_01_2017
UATHelper: Packaging (iOS): UnrealBuildTool: Total build time: 19,06 seconds (Remote executor: 0,00 seconds)
UATHelper: Packaging (iOS): CommandUtils.Run: Run: Took 19,2091584s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (iOS): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): C:\Epic Games\UE_4.16\Engine\Binaries\DotNET\UnrealBuildTool.exe YIT_AR_31_01_2017 IOS Development -Project=C:\Workspace\YIT_AR_31_01_2017\UE4\YIT_AR_31_01_2017\YIT_AR_31_01_2017.uproject C
:\Workspace\YIT_AR_31_01_2017\UE4\YIT_AR_31_01_2017\YIT_AR_31_01_2017.uproject -NoUBTMakefiles -remoteini=“C:\Workspace\YIT_AR_31_01_2017\UE4\YIT_AR_31_01_2017” -noxge -NoHotReload -ignorejunk. See logfile for details: ‘UnrealBuildTool-2017.05.02-19.49.29.txt’
UATHelper: Packaging (iOS): at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback) UATHelper: Packaging (iOS): at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (iOS): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary2 EnvVars) UATHelper: Packaging (iOS): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary2 EnvVars)
UATHelper: Packaging (iOS): at 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, Dictionary2 EnvVars) UATHelper: Packaging (iOS): at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary2 PlatformEnvVars, Nullable1 InChangelistNumberOverride, Dictionary2 InTarg etToManifest) UATHelper: Packaging (iOS): at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) UATHelper: Packaging (iOS): at BuildCookRun.DoBuildCookRun(ProjectParams Params) UATHelper: Packaging (iOS): at BuildCookRun.ExecuteBuild() UATHelper: Packaging (iOS): at AutomationTool.BuildCommand.Execute() UATHelper: Packaging (iOS): at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands) UATHelper: Packaging (iOS): at AutomationTool.Automation.Process(String[] Arguments) UATHelper: Packaging (iOS): at AutomationTool.Program.MainProc(Object Param) UATHelper: Packaging (iOS): at AutomationTool.InternalUtils.RunSingleInstance(Func2 Main, Object Param)
UATHelper: Packaging (iOS): at AutomationTool.Program.Main()
UATHelper: Packaging (iOS): Program.Main: AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (iOS): BUILD FAILED
PackagingResults:Error: Error Unknown Error

UE4.16 Preview 2
Mac OS Sierra, XCode 8.3.2

The same project successfully packaged with 4.16 preview 1 version

Hello ,

Does this issue happen with all of your projects or only this one in particular? Could you also please include the full log file as a .txt attachment?

Hi Mathew,

it’s seems like old projects from previous versions of UE4 are not building correctly. When the error came up I had a blank C++ project created in 4.15.0 version which built successfully in 4.16 p1 (after project conversion), but not in p2. I’ve recreated a blank C++ project in the preview 2 and it now successfully building. Sorry, but I can’t provide you a full log file because I’ve already removed old project’s files while recreation.

I understand. If you can nail down a reproduction, I’d be happy to look into this but without more information, I won’t be able to continue looking into this. I’ll this as resolved for the time being but if you run into this issue again, please feel free to comment and the post will reopen.