Just in case anyone needs the solution the reason was very silly. I forgot to add AppCheck capability to my target and change the entitlement key to "production".