Xcode Product -> Archive disabled
You've changed your scheme destination to a simulator instead of Generic iOS Device.
That's why it is greyed out.
Change the active scheme Device from Simulator to Generic iOS Device
Select "Any iOS Device" in newer versions of Xcode. And Archive Option will be enabled!