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-all
I had this issue in XCode 5. My provisioning profile was setup correctly but I didn't have an "entitlements" file. To fix this issue I selected the target application and then the "Capabilities" tab. I turned on one or two of the available options (iCloud, Game Center, Passbook, etc.) so XCode would create an "entitlements" file. After the file was created I turned off the options that I had just turned on. Again, I built and archived the project and was able to use the .ipa file with TestFlight.(see screenshot below)
If someone encounters this issue in Xcode 7.3.1 and if a restart doesn't help, try first to Validate
bunle, then to do Upload to App Store...
Oddly enough, restarting xcode, and rearchiving can help. It sure did for me. :-)
(TestFlight iOS App get-task-allow Issue)
I had the same problem. Solved it by checking and changing the identities I had used to sign the build. Fixed it for me.
I had the same problem. I logged in to the Apple Provisioning Portal and it turned out my Ad-hoc distribution provisioning profile was invalid with a yellow warning sign.
I deleted the old provisioning profile, created a new and selected it in XCode release settings. (Make sure you go to XCode Preferences, Account and refresh provisoring profiles first)
I face this issue multiple times even after setting the correct code signing in the project and target settings. I restarted the XCode, created another IPA and uploaded it to Testflight. That worked perfectly.
So I conclude it as: 1) First check if the code signing details and the provisioning profiles are correct. 2) If you still face the issue, quite XCode. Restart it and archive once again. Re upload the newly created archive and everything should be fine at this point.