Xcode Product -> Archive disabled Xcode Product -> Archive disabled xcode xcode

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 from a simulator to Generic iOS Device


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!