Stephane
Stephane

Reputation: 419

Build for archiving in Xcode 5

Just upgrade to xcode 5 and i saw "Build for archiving" missing in product menu. I go to Preferences/Key bindings and saw in product menu "build for -> installing", i put a key and it does not work.

So i execute this to do it :

xcodebuild -project myproject.xcodeproj -target mytarget -configuration Release

and i get the same thing as before in previous xcode with "build for archiving" (Just build with release configuration)

Any idea how to "build for archiving" (not Product/archive) with xcode 5 GUI ?

Thank you

Upvotes: 11

Views: 24114

Answers (3)

Constantine
Constantine

Reputation: 699

You can use "Build For Profiling", it is set to Release configuration.

Upvotes: 5

Jaimoto
Jaimoto

Reputation: 906

" Note that if the Archive menu is disabled this is most likely because the a simulator option is currently selected as the run target in the Xcode toolbar. Changing this menu either to a connected device, or the generic iOS Device target option should enable the Archive option in Product menu. "

More info at http://www.techotopia.com/index.php/Preparing_and_Submitting_an_iOS_7_Application_to_the_App_Store

Upvotes: 29

VictorB
VictorB

Reputation: 578

It looks like they have combined the two steps "Build for Archiving" and "Archive" into one menu command: Product -> Archive in XCode 5.

Upvotes: 12

Related Questions