Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Automatic signing is unable to resolve an issue with the target's entitlements file

Create iOS for distribution failed.

env: Automatic signing is unable to resolve an issue with the "Puzzle" target's entitlements file. Remove the entitlements or switch to manual signing and resolve the issue by downloading a

provisioning profile from the developer website.

env: Provisioning profile "dis" doesn't match the entitlements file's value for the get-task-allow entitlement.

env: Code signing is required for product type 'Application' in SDK 'iOS 10.3'



In addition,

  • only ios distribution version failed, develop version success.

  • If you project doesn't contain c++ source code, distribution version can success. I used to try to remove all c++ source code, it can success to create a distribution version of ipa.

  • I noticed that the dev version contains get-task-allow = true, the distribution contains false. I think it is ok, but don't understand why c ++ source code related to this

  • There there only there source files related with get-task-allow: UEDeployIOS.cs, CompileTime.cs, MobileProvisionUtilities.cs, I had reviewed but found nothing

I think it may be related to my development environment is the latest:

mac os:10.12.5



ue4: 4.15.3

Error log:   link text

I think UE4.16p3 Automatic Siging may solve my problem after some unknown operation. But there is another problem when deliver to app store:

ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle com.noxgame.archertest [Payload/ArcherTest.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal."

There maybe some issue with ue4.15/4.16 and xcode 8.3.2.

Here is a relate post:


Product Version: UE 4.15
more ▼

asked May 25 '17 at 04:13 AM in Packaging & Deployment

avatar image

31 2 4 5

avatar image joshmmo May 25 '17 at 08:11 AM

I have had the same problem for two weeks now and I can't find a solution. I have have found many suggestions like renaming the provisioning profile, making sure the cert and private key are in the system keychain and not the login keychain.

It worked once when a dialog popped up in the background asking if I wanted to grant access to the keychain and it magically worked. But I only saw that popup once and it has never come up again resulting in the same error you have.

Please someone give us some hope. I have spent hours looking and trying other suggestions.

avatar image joshmmo May 25 '17 at 08:11 AM

I am also on 4.16 now. Same error on 4.15.2/4.15.3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

The proper fix to the issue to fix UnrealBuildTool:

For some reason bForDistribution param to the function that writes the entitlements file is hardcoded to false. Replacing it with "InTarget.Configuration == UnrealTargetConfiguration.Shipping" solves the issue. This parameter is used to write "get-task-allow" value to true or false.

In Engine\Source\Programs\UnrealBuildTool\Platform\IOS\UEDeployIOS.cs on line 1098:

 if (BuildHostPlatform.Current.Platform == UnrealTargetPlatform.Mac && Environment.GetEnvironmentVariable("UBT_NO_POST_DEPLOY") != "true")
     // return PrepForUATPackageOrDeploy(InTarget.Configuration, InTarget.ProjectFile, GameName, ProjectDirectory, BuildPath + "/" + DecoratedGameName, "../../Engine", **false**, "", false, InTarget.bCreateStubIPA, InTarget.BuildReceiptFileName);
     // WITH
     return PrepForUATPackageOrDeploy(InTarget.Configuration, InTarget.ProjectFile, GameName, ProjectDirectory, BuildPath + "/" + DecoratedGameName, "../../Engine", 
        InTarget.Configuration == UnrealTargetConfiguration.Shipping, // not hardcoded
         "",  false, InTarget.bCreateStubIPA, InTarget.BuildReceiptFileName);

This bug should be raised to as a bug to UE4.

more ▼

answered Feb 11 '19 at 02:29 PM

avatar image

16 1 2

avatar image gstyczen Feb 11 '19 at 04:31 PM

Hi! Good job on finding this, however the problem persists when i'm trying to build (not deploy), perhaps there is a similar problem somewhere else, like UEBuildOS.cs ?

avatar image catalinux Feb 15 '19 at 03:30 PM

Hi, Actually,

The "For Distribution" project setting should be passed in there. I opened a bug to UE. Let's see.

avatar image Quaso Feb 18 '19 at 12:35 PM

Hey, any updates on this issue?

avatar image catalinux Feb 21 '19 at 07:16 AM
avatar image Al Ananias Mar 22 '19 at 11:42 PM

Ok, this has now been marked as resolved, however the commit is targeted to 4.22 and doesn't seem to be featured in the release branch yet. I'm hoping it will merge onto the release branch soon as I don't want to be running an unstable version of the engine, nor to try to implement this commit in isolation and potentially create other problems.

avatar image CWolf93 Mar 05 '19 at 12:17 AM

Great job finding this, but I'm still running into the same error after making the change you mentioned. For distribution is checked in my project settings. Any ideas?

My project packages in development build without issues.

avatar image catalinux Mar 05 '19 at 08:10 AM

Are you sure that both Mobile Provisioning and Certificate are set for distribution and that they are checked?

alt text

ios-prov.png (55.2 kB)
avatar image CWolf93 Mar 06 '19 at 08:01 AM

It's odd, I tried re-changing all of those settings and got a package ALMOST built. It went through the packaging process for about 10 minutes and downloaded a ton of plugins, but unfortunately, it eventually started deleting all the stuff it downloaded and gave me an error with exit code 23.

Unfortunately, after that lone package attempt I've been unable to pass the error that the OP asked (even though I have all the same settings as I did during my initial package attempt). Here's the error I get and my settings:

alt text alt text alt text

Any ideas?

settings.png (14.1 kB)
settings2.png (41.8 kB)
settings0.png (79.6 kB)
avatar image patrick58d Mar 05 '19 at 05:26 PM

I am also experiencing this same issue. I am using 4.21 and Xcode 10.1 (Apple requires you do have xcode 10.1 as of march 1st to upload to app store/test flight).

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

You can build via commandline to get past this issue.

/Users/Shared/EpicGames/UE_4.16/Engine/Build/BatchFiles/RunUAT.sh BuildCookRun -nocompileeditor -nop4 -project=/Users/username/project/project.uproject -cook -stage -archive -archivedirectory=/Users/username/Desktop/Build -package -clientconfig=Shipping -ue4exe=UE4Editor -clean -compressed -pak -prereqs -distribution -nodebuginfo -targetplatform=IOS -build -CrashReporter -utf8output

more ▼

answered May 25 '17 at 08:59 PM

avatar image

23 4 11 12

avatar image Kuafu May 26 '17 at 01:58 PM

Thank your! It works.

avatar image Antidamage Jan 11 '18 at 05:05 AM

Ever since running this command (with all the stuff filled out) any attempt to package my project fails instantly. I would advise against it.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question