From what I understand, Xcode can re-sign an .ipa from an archive during the App store submission process, making it possible for you to create an archive with a Developer P
The problem here is that when you originally archived it would have set the entitlements to be compatible with a developer profile, such as the get-task-allow
set to true
but you're re-signing using a distribution profile which requires get-task-allow
to be false
. Unfortunately it can't go and change the entitlements and so you get this problem.
I'm not entirely sure why Apple can't make it so that it can go and change the entitlements and do all the magic there. The code, resources, etc will all be the same after all.