470

I would like to archive my application, but the Archive option is greyed out. What could cause this?

enter image description here

4
  • Make sure that you change "Skip Install" in your target to NO
    – user1678751
    Sep 17, 2012 at 22:06
  • 94
    Basically, at the top left select "iOS Device", NOT a simulator.
    – Fattie
    Mar 31, 2014 at 14:28
  • 3
    my thinking is wtf, but ok, this is apple, so much makes me say that already...
    – user230910
    Jun 10, 2015 at 10:40
  • 3
    Select "Generic ios device"
    – Jamil
    Oct 22, 2016 at 9:44

4 Answers 4

971

You have to select the device in the schemes menu in the top left where you used to select between simulator/device. It won’t let you archive a build for the simulator.

Or you may find that if the iOS device is already selected the archive box isn’t selected when you choose “Edit Schemes” => “Build”.

10
  • 27
    apple should make everything more user friendly
    – neobie
    Jan 12, 2013 at 5:17
  • 37
    Spent an hour searching for this. You know what would fix this, Apple? Don't disable the Archive button. Run through the checks that would cause an error and then display an alert. I bet 9/10 it's the simulator. "You may not archive a build for the simulator. Select iOS Device and Archive again."
    – Harry Love
    Mar 30, 2013 at 4:35
  • 5
    Apple's developer software is ridiculously non-user-friendly. I've spent so long trying to get the stupid provisioning profiles and push certificates to work and trying to export my app, barely making it by Googling everything. About as much time as I've spent coding so far.
    – sudo
    Mar 17, 2014 at 5:56
  • 3
    Really, it should be against GUI programming rules to ever grey something out without explanation.
    – sudo
    Mar 17, 2014 at 6:03
  • 2
    Well compared to Android Dev tools, Xcode is looking pretty good Oct 6, 2014 at 1:45
49

see the picture. but I have to type enough chars to post the picture.:)

enter image description here

1
  • Thanx you ! is is that ^^
    – YannSteph
    Jan 18, 2015 at 11:36
22

As the other answers state, you need to select an active scheme to something that is not a simulator, i.e. a device that's connected to your mac.

If you have no device connected to the mac then selecting "Generic IOS Device" works also.

enter image description here

Image for newer versions of XCode:

enter image description here

4

I fixed this today...sort of. Although the archives still don't show up anywhere. But I got the Archive option back by going into Build Settings for the project and re-assigning my certs under "Code Signing Identity" for each build. They seemed to have gotten reset to something else when imported my 3.X project to 4.

I also used the instructions found here:

http://developer.apple.com/library/mac/#documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/DistApps/DistApps.html#//apple_ref/doc/uid/TP40010215-CH11-DontLinkElementID_69

But I still can't get the actual archives to show up in Organizer (even though the files exist)

2
  • The same problem occurs to me too...is there any solution for it? Dec 5, 2012 at 7:16
  • Maybe this helps you. You can tickmark "Reveal Archive in Organizer" here: Product > Scheme > Edit Scheme... > Archive > Options
    – Daniel S.
    Mar 18, 2014 at 16:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.