I have been archiving for ad hoc distribution fine for many months and suddenly today I cannot do so as the Archive menu item is disabled. I have not changed anything. I wen
If you are sure that you selected the Generic iOS device and still can't see the option, then you simply have to restart Xcode.
Generic iOS device
This was the missing solution for me as a cordova developer with Xcode 11.2