Quick question on file

I am trying to package a game to an ios device, but I am getting the error “Provisioning profile doesn’t match the entitlements file’s value for the get-task-allow entitlement”. Where do I find the entitlements files and change the value? I am packaging for distribution, and am using a distribution profile and certificate. This error appears in the output log of an unreal engine 4 project which is on a mac operating system.