Take the 2-minute tour ×

So I'm using testflightapp to distribute an ad-hoc build.

But I keep getting this message: 'Invalid Profile: distribution build entitlements must have get-task-allow set to false.'

I don't have an entitlements file for my App, so XCode automatically produces one and includes it in the build. I unzip the App.ipa and open up the embedded.mobileprovision file and look at the entitlement dictionary.

It looks like this:


Anyone else experienced this before? I don't understand why I'm getting this error.

share|improve this question
add comment

3 Answers

up vote 24 down vote accepted

Turns out the Code-Signing Identity in my build configuration didn't match the one I selected when I saved the archive for Ad-Hoc distribution.

share|improve this answer
Had the same problem. You saved my day, thanks. –  Davide Vernizzi May 8 '12 at 16:16
Solved my problem, too, thanks! (I believe you can check your answer now.) –  Matthew Frederick May 11 '12 at 1:39
Can you explain what this is? Where are the two different places where you specify the code singing identify? –  luisperezphd Jul 16 '12 at 15:03
@luisperezphd In XCode 4 click the blue project icon. In the page that opens up in the sidebar you can select the project and the target, your app, both have their own build settings with their own code-signing setting. I just updated both to match what I wanted and it solved the problem. –  Tobias Jul 16 '12 at 18:38
add comment

I have the same problem.

If you follow the TestFlight instructions the Entitlement configuration in the Target --> Summary should be disabled.


But doesn't works for me, hopefully works for you.

share|improve this answer
add comment

I had the same problem. Solved it by checking and changing the identities I had used to sign the build. Fixed it for me.

share|improve this answer
add comment

Your Answer


