2011年10月25日星期二

How to Create a Distribution Build in Xcode 4: A Step By Step Tutorial

How to Create a Distribution Build in Xcode 4: A Step By Step Tutorial:
This tutorial assumes that you already have both a valid iOS Distribution Certificate and Distribution Provisioning Profile installed. If not you may want to take a look here. It is also assumed that you have at least one application submitted to iTunes Connect that is in the state of “Waiting For Upload.”

1.) Open your project and go to your projects Info Tab

2.) Under “Configuration” click (+) and select Duplicate “Release” Configuration



3.) Name this new configuration “Distribution”



4.) Go to your projects Build Settings



5.) Under Code Signing > Code Signing Identity – Find Distribution



6.) Under Distribution find “Any iOS SDK” and select your Distribution Provisioning Profile



7.) Now go to the Edit Scheme drop-down list and select your app + iOS Device



8.) After that from the same Edit Scheme drop-down select “Edit Scheme . . .”



9.) Find the Archive settings (which are set to Release by default) and expand them



10.) Select the “Archive” option that has a check mark next to it



11.) With this selection highlighted find “Build Configuration” on the right Choose “Distribution” from the drop down and click OK



*Optional* I like to do a “Clean” before making a distribution build. If you like select Product > Clean



12.) To create your Archive/Distribution Build select Product > Archive



If your project compiles without error the Organizer is opened to the Archives



13.) Now click “Validate . . .”



14.) Provide your iTunes Connect login credentials and click Next



15.) Select your application from the “Application” drop down

16.) Select your appropriate Distribution Certificate from the “Identity” drop down and click Next



* Hopefully no issues are found and your app is ready for submission. If not make the necessary corrections then recreate your Archive build and validate again.

17.) If no issues were found then click “Submit . . . “



18.) Provide your iTunes Connect login credentials and click Next

19.) Select your application from the “Application” drop down

20.) Select your appropriate Distribution Certificate from the “Identity” drop down and click Next

* iTunes Connect validates your app again (just incase you didn’t manually validate) and then uploads the binary

Sit back, Thats it.

You should receive a msg stating your app has passed validation and has been submitted to the App Store for further review!

没有评论:

发表评论