It may seem a silly question, but i’m pretty sure you are in the rush to submit your App, and you get scared when you see the “Archive” option disabled:
Keep calm my friend. You may be deploying to simulator. Check out that your “Product > Destination” is a valid iOS device.
Hope it saves time and panic situations!
Have a nice coding day