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