Xcode4 releases apps and adhoc

Source: Internet
Author: User
Document directory
  • Adding beta tester Devices
  • Creating the distribution provisioning Profile
  • Building for ad hoc distribution
  • Sharing the application

Http://www.weston-fl.com/blog? P = 2442

Adhoc Source: http://useyourloaf.com/blog/2010/12/23/creating-iphone-ad-hoc-distribution-builds.html

I. Release

1. IOS provisioning portal and iTunes connect is the same. I assume you have downloaded the distribution. mobileprovision file and added to your project, and you have prepared your new app at iTunes connect as well (I. e. your iTunes appstore account is waiting
For the app to be uploaded ).

2. The xcode 4 and organizer and Application Loader have been integrated. Open the scheme drop-down list and choose your application with iOS device. See the screenshot below.

Select your target application and iOS device

Click on edit scheme... To look at the archive option. By default it builds a release bundle and will be revealed in the Organizer:

Edit application scheme in xcode 4

3. Check out your usual building settings (product name, info. plist, version, target device family, IOS deployment target, code signing identity etc .).

4. Find the product menu-> archive option to build the release version. When ready, the organizer will pop up.

Build archive to be able to submit app to appstore

The organizer helps you manage your apps. you do not have to know any longer what folder your bundle is in. xcode 4 and the organizer takes care of all the file processes. actually the build bundle is under a derived data folder of your project. the exact
Location is set in your xcode preferences. See xcode-> preferences-> locations tab.

5. In the organizer select your new "Archive" (in xcode 3 Language: The release version of your app bundle). validate it.

Validate and submit your app to appstore

6. After successful validation submit your app to iTunes. When finished its archive status will be changed to submitted.

Notes:

-In the organizer the "share application ..." Option is for ad-hoc distribution and produces an. IPA file.

Ii. adhoc

Each time I need to create a build for a beta tester I find myself hunting around for my notes on how to create and distribute an ad hoc build. so here, once and for all, are my notes on what to do to create an ad hoc distribution of an iPhone app.

Adding beta tester Devices

Apple allows an ad hoc build to be distributed to up to 100 devices which they enforce by making you add the devices to the distribution provisioning certificate. this means that you need to retrieve the udid for all of the test devices, add them to
Provisioning profile using the IOS provisioning portal and then download and install the profile.

Finding the udid

To get started you need to ask your beta testers to supply the unique device ID (udid) for their devices. now unless the user is also an iOS developer they are unlikely to know what that means. you can try to explain to them how they need to connect
Device to iTunes, select the device in the devices section, find the summary page, click on the serial number to reveal the "hidden" udid and then command-C (MAC) or Ctrl-C (Windows) to copy it into an email. however I find the easiest thing to do is to point
Them towards this article by Apple which explains the steps. The article is for the iPad but the steps are the same for all devices.

Registering the device

Once you have the udid you need to add it to your account in the IOS provisioning portal in the same way you wowould for a development device. you do this in the devices section of the portal and can either use the 'Add device' button to manually add a single
Device or use the upload devices button to bulk upload multiple udids from a text file.

Note if you want to bulk upload multiple devices the format of the text file needs to be as follows with the two columns separated with tabs:

Device ID                                Device Name1234567890123456789012345678901234567890 Test iPad

The contents of the first line are not important but you need to put something as the first line is ignored when you upload.

Also be aware that you can only register up to 100 devices each year. you can delete devices any time you want but once added they still count towards your annual allocation. (So if you add 100 devices and then delete 50 of them you still have to wait
The next year before you can add any more). This has never been an issue for me as I am nowhere near to having 100 beta testers or development devices.

Creating the distribution provisioning Profile

Assuming you already have a distribution certificate the process to create an ad hoc provisioning profile is quick and easy. In the Distribution Tab Of the provisioning section use the new profile button.

The only difference between an ad hoc profile and a normal App Store profile is the Distribution Method

Ensure you select the ad hoc method and then enter a profile name, the app ID and finally ensure you select all of the devices you want the ad hoc build to run on. once you have finished submitting the profile you shoshould download it and save it somewhere
Safe as you will need to send it to each of the beta testers. the file shoshould have an extension. mobileprovision. you shoshould also drag the file onto your xcode icon to install it, you can use the xcode organiser to verify that it installed OK. you shoshould
See the profile in the provisioning profiles section.

Building for ad hoc distribution

With the provisioning profiles configured correctly the next step is to prepare the project in xcode for an ad hoc build. I have found it useful to create a configuration just for ad hoc builds so that I do not have to worry about the details each time.
The easiest way to do that is to copy an existing configuration, if you already have a distribution configuration that is probably a good starting point otherwise you can start from the default "release" configuration.

With the project open in xcode, right-click on the target and select "get info" to bring up the info dialog window and select the build tab and then in the configuration drop down menu SELECT "Edit statements ..."

Select an existing configuration (e.g. Release or distribution) and then at the bottom of the window use the duplicate button to create a copy of the configuration and name it "adhoc ".

In the target info window ensure this new adhoc configuration is selected and then adjust the following settings in the build tab. in the code signing section, look for the "any IOS" setting under code signing identity and make sure it is set to iPhone
Distribution and matches the ad hoc provisioning profile we installed previusly.

Entitlements

There is one additional step if your project has des an entitlements. plist file (perhaps because you needed
Enable keychain data sharing ). for an ad hoc distribution you need to ensure that the get-task-Allow flag is not set in the plist file. the way I handle this is to add a second file
(Entitlements-adhoc.plist) Just for the ad hoc build which is identical apart from the get-task-Allow flag:

To ensure this new entitlements file is used you need to modify the code signing entitlements setting in the ADHOC configuration to reference the new file.

Build and archive

With the ADHOC build settings active use the build and archive command to create the distribution build. assuming the build was successful you shoshould find it in the xcode organizer in the archived Applications Section. you can add a name and comment to
Organizer for future reference at this point.

Sharing the application

I find the easiest way to send the application files to a beta tester is to use the xcode organizer to create an IPA file. to do that select the ADHOC build in the archived Applications Section and use the share button and then select Save to disk. xcode
Will create a signed application file and save it to disk with a name of your choosing. Name the file something useful like appName-x.y.z.ipa where x. y. Z is the version number.

You can then send this. IPA file together with the. mobileprovision file to your beta tester with instructions to drag onto their iTunes library to install it on the test device.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.