Xcode 4 - "Archive" is greyed out? Xcode 4 - "Archive" is greyed out? xcode xcode

Xcode 4 - "Archive" is greyed out?


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”.


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

enter image description here


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