Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build for archiving in Xcode 5

Tags:

build

xcode5

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

like image 995
Stephane Avatar asked Sep 21 '13 09:09

Stephane


3 Answers

" 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

like image 176
Jaimoto Avatar answered Nov 01 '22 15:11

Jaimoto


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

like image 12
VictorB Avatar answered Nov 01 '22 16:11

VictorB


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

like image 5
Constantine Avatar answered Nov 01 '22 17:11

Constantine