Xcode not asking for "Automatically manage signing" on app export

Hello :) I have a problem regarding the automatic code signing and I was unable to find something like this on the net.

The app target and its extension are configured to use automatic code signing. As I can see Xcode creates provisioning profiles with required capabilities for every target. We have app target, intents extension and share extension.

When I want to export the app for Ad-Hoc distribution I archive the app and in organiser go to Distribute app while picking Ad-Hoc as an export method. Organiser asks me for including the app manifest for OTA install and after that step it takes me to picking the provisioning profiles for every target.

So, the problem is that it doesn't ask me to automatically handle signing when doing the export.

Did someone else had this problem and managed to solve it? Any help would be welcome. I tried to delete existing provisioning profiles in Library/MobileDevice/ProvisioningProfiles and it didn't help. I tried with deleting the DerivedData and it also didn't help.

I have this problem on Xcode 12 and Xcode 11.5.

Thanks!
Answered by KMT in 635036022
Be sure you've created and installed an ad-hoc profile in the Member Center.

If this is the process you're using, and it is failing, you may have encountered a bug in Xcode.

Suggest you file one and see what comes back.

Note when using auto signing, once it's been configured in settings, I don't recall Xcode ever asking about it during build....seems that's why it called 'automatic' ;)
Accepted Answer
Be sure you've created and installed an ad-hoc profile in the Member Center.

If this is the process you're using, and it is failing, you may have encountered a bug in Xcode.

Suggest you file one and see what comes back.

Note when using auto signing, once it's been configured in settings, I don't recall Xcode ever asking about it during build....seems that's why it called 'automatic' ;)
I'm sorry, I accidentally marked your answer as a solution. It did help me but it isn't the best solution. After hours of investigating I created Ad-Hoc profile for every target and changed the method from automatic to manual when exporting the app.

@KMT I didn't say it was during the build, the problem was that when exporting the app as Ad-Hoc I don't see the window with 2 radio buttons where I can select between "Automatically manage signing" and "Manually manage signing".

At the end I filed a radar: FB8726812 (Xcode not asking for "Automatically manage signing" on app export). Thanks for your help!

Xcode not asking for "Automatically manage signing" on app export
 
 
Q