Xcode 'Build and Archive' menu item disabled

in xcode 10.2: make your project on Generic ios devices tab and go to product>archiveto archive your project after if you want to see all your archived history go to windows>organizertap .


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

under edit scheme


iOS Device is selected and Archive is enabled

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.

Tags:

Iphone

Xcode