Xcode 'Build and Archive' menu item disabled

IphoneXcode

Iphone Problem Overview


I have been using the new 'Build and Archive' feature of the latest Xcode 3.2.3. I like it.

Now I noticed that it is always disabled for some reason. I can't seem to figure out what I changed to cause this.

Iphone Solutions


Solution 1 - Iphone

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.

Solution 2 - Iphone

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

under edit scheme

Solution 3 - Iphone

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 .

Solution 4 - Iphone

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.

Solution 5 - Iphone

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.

Solution 6 - Iphone

In addition to what @Alexander Babaev said , when I had this problem it was because for some reason the build configuration was set to MAC 64 bit (dont know how it got there...) , returned it to IOS and it got enabled again.

Solution 7 - Iphone

You need to download the application_tools_1.1.dmg

Solution 8 - Iphone

You can delete your project scheme in "manage schemes …" and then click "autocreate schemes now" in the manage schemes window. This gives back the archive option.

Solution 9 - Iphone

Had been messing around with this for quite some time too. Don't forget to click on 'Validate Settings' at the bottom after you've checked the 'Prerendered' tickbox in the summary tab. And if you're deploying your app to the iPhone or iPad, make sure you delete the app first and then build it again. Otherwise your icons will still be the same.

Solution 10 - Iphone

Quitting and relaunching XCode sometimes helps. It usually does for me, if choosing an iOS device doesn't do the trick.

Solution 11 - Iphone

First you have to add a ios device then go to product on the top then click it after that you can get enadled Archive option .

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestiontoofahView Question on Stackoverflow
Solution 1 - IphonebealexView Answer on Stackoverflow
Solution 2 - IphoneiamdavidlamView Answer on Stackoverflow
Solution 3 - IphoneZahraAsgharzadeView Answer on Stackoverflow
Solution 4 - IphoneVicky SalunkheView Answer on Stackoverflow
Solution 5 - IphoneScottView Answer on Stackoverflow
Solution 6 - IphoneJames RoeiterView Answer on Stackoverflow
Solution 7 - IphoneMrManlyManView Answer on Stackoverflow
Solution 8 - IphoneMacMarkView Answer on Stackoverflow
Solution 9 - IphoneIvar van WooningView Answer on Stackoverflow
Solution 10 - IphoneGerry BeauregardView Answer on Stackoverflow
Solution 11 - IphoneAbhishek PathakView Answer on Stackoverflow