Distribution build for iOS fails

I tested both with my own project and an empty AR template project. Developement build works OK, distribution build returns this error:

Provisioning profile “projectName” doesn’t match the entitlements file’s value for the get-task-allow entitlement.

Using remote build.

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://epicsupport.force.com/unrealengine/s/

Thanks

Go to Project Settings → Packaging → Project. Then enable the “For Distribution” option