I would like to archive my application, but the Archive option is greyed out. What could cause this?
-
Make sure that you change "Skip Install" in your target to NO – Sep 17 '12 at 22:06
-
94Basically, at the top left select "iOS Device", NOT a simulator. – Fattie Mar 31 '14 at 14:28
-
3Select "Generic ios device" – Jamil Oct 22 '16 at 09:44
4 Answers
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”.

- 1,702
- 3
- 22
- 37

- 9,726
- 1
- 14
- 2
-
1Doesn't it seem like that drop down indicates where you want to run the app? Seems like a silly restriction to prevent archiving when a simulator is selected... – corbin Feb 03 '13 at 02:04
-
Note that in XCode 8.2 the menu item to select is now called "Generic iOS Device". For a minute I thought this answer was saying to select a physical iOS device. – galactikuh Nov 25 '17 at 21:56
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.
Image for newer versions of XCode:

- 6,242
- 5
- 41
- 62
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:
But I still can't get the actual archives to show up in Organizer (even though the files exist)

- 1,703
- 2
- 11
- 13
-
Maybe this helps you. You can tickmark "Reveal Archive in Organizer" here: Product > Scheme > Edit Scheme... > Archive > Options – Daniel S. Mar 18 '14 at 16:25