Xcode 'Build and Archive' menu item disabled Xcode 'Build and Archive' menu item disabled xcode xcode

Xcode 'Build and Archive' menu item disabled


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.


in my case, the archive checkbox was unchecked. =/ strange

under edit scheme


All you need to do is create an Executable File in your project folder... If you start with a fresh project there are NO executable projects, only what you create, be it a .cpp or a .m you need an executable in the folder.