Xcode 'Build and Archive' menu item disabled
in xcode 10.2
:
make your project on Generic ios devices
tab and go to product>archive
to archive your project after if you want to see all your archived history go to windows>organizer
tap .
I Faced the same issue.
This is how I solved it.
Go to device list, and select any ios device
then go to the product
menu, archive
option should be active/enabled
now.
in my case, the archive checkbox was unchecked. =/ strange
Build configiuration setting needs to be an "iOS Device" (or any specific device if connected) to activate "Product → Archive" menu item. For some strange reason when any kind of iOS Simulator is selected, Archive is greyed out.