240

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.

Cœur
  • 37,241
  • 25
  • 195
  • 267
toofah
  • 4,455
  • 4
  • 31
  • 42
  • 1
    This may help you [Change The deployment target to iOS Device](http://way2ios.com/development/ios-development-2/iphone-2/error-while-creating-ipa-file-in-xcode-4-and-xcode-4-2/) – Ramakrishna Guttha Jul 05 '13 at 12:14

11 Answers11

694

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.

bealex
  • 10,004
  • 1
  • 21
  • 27
5

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

under edit scheme

iamdavidlam
  • 404
  • 5
  • 10
2

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 .

ZahraAsgharzade
  • 311
  • 3
  • 10
2

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.

Vicky Salunkhe
  • 9,869
  • 6
  • 42
  • 59
1

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.

Scott
  • 11
  • 1
1

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.

James Roeiter
  • 861
  • 1
  • 9
  • 23
  • XCode seems to have several things that can cause your schemes to "forget" their targets, reverting to Mac 64 bit. Editing schemes and returning the target to iOS like you said always does the trick. – todd412 Feb 22 '13 at 05:34
0

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.

MacMark
  • 6,239
  • 2
  • 36
  • 41
0

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.

0

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

0

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 .

0

You need to download the application_tools_1.1.dmg