Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TestFlight rejecting build "get-task-allow" error

Tags:

testflight

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:

<key>Entitlements</key> <dict>     <key>application-identifier</key>     <string>E9PBH9V8TB.*</string>     <key>get-task-allow</key>     <false/>     <key>keychain-access-groups</key>     <array>         <string>E9PBH9V8TB.*</string>     </array> </dict> 

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

like image 426
Tobias Avatar asked May 03 '12 16:05

Tobias


Video Answer


2 Answers

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.

like image 82
Tobias Avatar answered Sep 29 '22 19:09

Tobias


Heh, i suddenly found that Code Signing Identity for Release build was changed to iOS Developer. You should change it to iOS Distribution. If it doesn't fix your problem, set Provisioning profile for Release build.

Steps to fix it

It works for me. Happy coding!

Update: Sometimes XCode doesn't apply this changes and restarting of XCode could help. Anyway before uploading to Testflight I strongly recommend you to check build logs. You should find this line "Using code signing identity" and see if XCode use the right Code Identity (distribution) to sign. It could save you a lot of time.

like image 30
Anton Gaenko Avatar answered Sep 29 '22 19:09

Anton Gaenko