Packaging error for distribution IOS

Hello everyone,

I’m currently wraping up my game and trying to pack it for distribution without success.

This is a 4.21 project with blueprints only.

I have no problem packing the project for development and even a couple of month ago I was able to create a distribution build.

Just to double check everything, I recreated my certificates, provisions , private keys and made sure that the keys were in system in the keychain Access.

With the new certificates, I don’t have any issues building for development but again it doesn’t work for distribution.
I found a post explaining that changing a line of code in UEDeployIOS file could fix it but still it doesn’t work.

here is a link to the post : Unreal Engine Issues and Bug Tracker (UE-70358)

this is part of the log that I get when it fails:

UATHelper: Packaging (iOS): Code Signing Error: Provisioning profile "APPNAMEDistri" doesn't match the entitlements file's value for the get-task-allow entitlement. PackagingResults: Error: Provisioning profile "APPNAMEDistri" 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 12.1' PackagingResults: Error: Code signing is required for product type 'Application' in SDK 'iOS 12.1' 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) UATHelper: Packaging (iOS): ERROR: System.Exception: ** BUILD FAILED ** UATHelper: Packaging (iOS): at UnrealBuildTool.IOSToolChain.PostBuildSync (UnrealBuildTool.UEBuildTarget Target) [0x00000] in :0 UATHelper: Packaging (iOS): at UnrealBuildTool.IOSPlatform.PostBuildSync (UnrealBuildTool.UEBuildTarget Target) [0x00000] in :0 UATHelper: Packaging (iOS): at UnrealBuildTool.UnrealBuildTool.RunUBT (UnrealBuildTool.BuildConfiguration BuildConfiguration, System.String[] Arguments, Tools.DotNETCommon.FileReference ProjectFile, Boolean bCatchExceptions) [0x00000] in :0 UATHelper: Packaging (iOS): (see C:\Users\Oliv\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.21\UBT-APPNAME-IOS-Shipping_2_Remote.txt for full exception trace) PackagingResults: Error: System.Exception: ** BUILD FAILED ** UATHelper: Packaging (iOS): Total build time: 106.49 seconds (Local executor: 54.73 seconds) UATHelper: Packaging (iOS): [Remote] Downloading C:\Users\Oliv\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.21\UBT-APPNAME-IOS-Shipping_2_Remote.txt UATHelper: Packaging (iOS): Took 163.7240628s to run UnrealBuildTool.exe, ExitCode=7 UATHelper: Packaging (iOS): ERROR: UnrealBuildTool failed. See log for more details. (C:\Users\Oliv\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.21\UBT-APPNAME-IOS-Shipping_2.txt) UATHelper: Packaging (iOS): (see C:\Users\Oliv\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\Oliv\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.21\UBT-APPNAME-IOS-Shipping_2.txt) UATHelper: Packaging (iOS): AutomationTool exiting with ExitCode=7 (7) UATHelper: Packaging (iOS): BUILD FAILED PackagingResults: Error: Unknown Error

If someone could point me to what I’m doing wrong it would be great.

Thanks in advance,

Olivier

I am having the same problem. And in fact I downloaded and build the source from the commit with the fix listed (from Unreal Engine Issues and Bug Tracker (UE-70358)) and I am still have the exact same issue.

I hear you Patrick,

I should also mentioned that I use remote building as I’m working on windows and this morning after going again through the process of recreating every single certificates and private keys in keychain, the problem remains.
The certificate are set up to “Always trust” and are valid.
Again I can use the development certificate without a problem but when switching to distribution it fails.
It used to work in December and I build a dozen of the same project for distribution without a problem.
I’m running out of ideas on what to do I have to say.

Anyone could help with that?

Hello everyone,

I’m pushing this post to give an update on this problem.
After updating the software to 4.22, updating IOS on my mac , randomly I was able to remotely build the game, get an IPA and send the test build to friends via TestFlight.
However after updating unreal to 4.23, updating IOS to Catalina, xcode, etc , I can’t build the game anymore, even though I didn’t change a thing in the project.

So I guess I’m back to where I was with the impossibility to publish my game.
If anyone as a step by step guide to setup the mac, xcode, unreal, keychain, whatever it is, that would be really appreciated.

Also I mentioned in the original post that I was only using blueprint which is wrong since one of the plugin I’m using contains C++. (gameDNA)