iOS Packaging Error 4.21

Has anyone else been running into AppID issues when packaging for distribution? I’ve built numerous apps with prior UE4 versions and never had this issue.


Code Signing Error: Provisioning profile “ReplacedID” doesn’t match the entitlements file’s value for the get-task-allow entitlement.
PackagingResults: Error: Provisioning profile “ReplacedID” doesn’t match the entitlements file’s value for the get-task-allow entitlement.
UATHelper: Packaging (iOS): Code Signing Error: Code signing is required for product type ‘Application’ in SDK ‘iOS 11.4’
UATHelper: Packaging (iOS):
UATHelper: Packaging (iOS): ** BUILD FAILED **
UATHelper: Packaging (iOS):
UATHelper: Packaging (iOS):
UATHelper: Packaging (iOS): The following build commands failed:
UATHelper: Packaging (iOS): Check dependencies
UATHelper: Packaging (iOS): (1 failure)
PackagingResults: Error: Code signing is required for product type ‘Application’ in SDK ‘iOS 11.4’
UATHelper: Packaging (iOS): ERROR: System.Exception: ** BUILD FAILED **
UATHelper: Packaging (iOS): at UnrealBuildTool.IOSToolChain.PostBuildSync (UnrealBuildTool.UEBuildTarget Target) [0x00000] in <filename unknown>:0
UATHelper: Packaging (iOS): at UnrealBuildTool.IOSPlatform.PostBuildSync (UnrealBuildTool.UEBuildTarget Target) [0x00000] in <filename unknown>:0
UATHelper: Packaging (iOS): at UnrealBuildTool.UnrealBuildTool.RunUBT (UnrealBuildTool.BuildConfiguration BuildConfiguration, System.String] Arguments, Tools.DotNETCommon.FileReference ProjectFile, Boolean bCatchExceptions) [0x00000] in <filename unknown>:0
UATHelper: Packaging (iOS): (see C:\Users\xxx\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.21\UBT-Replaced-IOS-Shipping_2_Remote.txt for full exception trace)
PackagingResults: Error: System.Exception: ** BUILD FAILED **
UATHelper: Packaging (iOS): Total build time: 119.41 seconds (Local executor: 47.14 seconds)
UATHelper: Packaging (iOS): [Remote] Downloading C:\Users\xxxt\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.21\UBT-Replaced-IOS-Shipping_2_Remote.txt
UATHelper: Packaging (iOS): Took 141.789183s to run UnrealBuildTool.exe, ExitCode=7
UATHelper: Packaging (iOS): ERROR: UnrealBuildTool failed. See log for more details. (C:\Users\xxx\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.21\UBT-Replaced-IOS-Shipping_2.txt)
UATHelper: Packaging (iOS): (see C:\Users\xxx\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.21\Log.txt for full exception trace)
PackagingResults: Error: UnrealBuildTool failed. See log for more details. (C:\Users\xxx\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.21\UBT-Replaced-IOS-Shipping_2.txt)
UATHelper: Packaging (iOS): AutomationTool exiting with ExitCode=7 (7)
UATHelper: Packaging (iOS): BUILD FAILED
PackagingResults: Error: Unknown Error

I’ve regenerated the provision and the certificate and wiped all of the prior ones from the provision list. I’m not sure why I’m getting a mismatch, curious if anyone has any tips on how to resolve this.

I’m doing remote build from a Windows PC if it matters, but again, I’ve had no issues in the past and I’m using the same process I’ve always followed. Log is posted below.


Log.WriteException: AutomationException: UnrealBuildTool failed. See log for more details. (C:\Users\xxx\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.21\UBT-Replaced-IOS-Shipping_2.txt)
Log.WriteException: at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\UBTUtils.cs:line 77
Log.WriteException: at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, UnrealTargetPlatform Platform, UnrealTargetConfiguration Config, String AdditionalArgs) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\UBTUtils.cs:line 114
Log.WriteException: at AutomationTool.UE4Build.BuildWithUBT(String TargetName, UnrealTargetPlatform TargetPlatform, UnrealTargetConfiguration Config, FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\UE4Build.cs:line 263
Log.WriteException: at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Nullable1 InChangelistNumberOverride, Dictionary2 InTargetToManifest) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\UE4Build.cs:line 1212 Log.WriteException: at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildProjectCommand.Automation.cs:line 206 Log.WriteException: at BuildCookRun.DoBuildCookRun(ProjectParams Params) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 208 Log.WriteException: at BuildCookRun.ExecuteBuild() in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 41 Log.WriteException: at AutomationTool.BuildCommand.Execute() in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 242 Log.WriteException: at AutomationTool.Automation.Execute(List1 CommandsToExecute, Dictionary2 Commands) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 563 Log.WriteException: at AutomationTool.Automation.Process(String] Arguments, StartupTraceListener StartupListener) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 533 Log.WriteException: at AutomationTool.Program.MainProc(String] Arguments, StartupTraceListener StartupListener) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 173 Log.WriteException: at AutomationTool.Program.<>c__DisplayClass1_0.<Main>b__2() in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 99 Log.WriteException: at AutomationTool.InternalUtils.RunSingleInstance(Func1 Main) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 725
Log.WriteException: at AutomationTool.Program.Main() in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 99
Log.WriteException: ==============================================================================
Program.Main: AutomationTool exiting with ExitCode=7 (7)

Thanks for any advice anyone may have.

same problem here

What’s in C:\Users\xxx\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.21\UBT-Replaced-IOS-Shipping_2.txt?

You have to read the error output and try to understand it. It often contains the next step in debugging it.