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 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)