Tips and Tricks: How to Build .IPA for Testdroid Cloud iOS Devices

How to Use Xcode to Build IPA

Dear Testdroiders,

This question comes up every now and then – and especially when iOS development tools (and Apple Dev Center) evolve. Indeed, running your .IPA on Testdroid Cloud is extremely easy and straightforward process – and doesn’t require much. I will walk you through here of two basic things in iOS app development: creating a provisioning profile that can be used to sign apps – and how to build an IPA (with provisioning profile) to make it run instantly and smoothly on Testdroid Cloud devices.


ipa_creation

Creating Ad Hoc Provisioning Profiles Using App Dev/Member Center

An ad hoc provisioning profile allows application testers to run their app on devices without a need for Xcode or specific setups. To get compatible .IPA built, the provisioning profile needs to be ad hoc as well. To create an ad hoc provisioning profile click through the following steps:

1. In Certificates, Identifiers & Profiles view, select Provisioning Profiles (last one on menu). Click ‘+‘ button in the upper-right corner and select Ad Hoc as the distribution method – and click Continue.

Screen Shot 2015-06-23 at 10.52.22 AM

2. In the next step, you have to select an App ID. Basically, an App ID is a two-part string used to identify apps from your development team. The string consists of a Team ID  (e.g. A1B2C3D4E5) which is generated by Apple and is unique to a specific development team – and a Bundle ID, which is provided by you. This ID can be specific to a single app (e.g. com.bitbar.testdroid.BitbarIOSSample) or used for a set of apps (e.g. com.bitbar.testdroid.*).

If you are not familiar with App IDs, those can be configured under the left-hand-side menu Identifiers -> App IDs.

Screen Shot 2015-06-23 at 10.56.51 AM

3. You can select one or more certificates for your provisioning profile. Basically, you must select the distribution certificate(s) your apps will be signed with. If you don’t have distribution certificate ready, you can configure and create proper certificates on the left-hand-side menu under Certificates -> Distribution.

Screen Shot 2015-06-23 at 11.12.07 AM

4. In this step you are expected to select devices on where your app will be executed. From the Testdroid Cloud point of view, this is a vain step as we will resign the provisioning profile with our own that contains information about our devices on Testdroid Cloud service.

Screen Shot 2015-06-23 at 11.26.23 AM

5. Finally, you’ll be prompted to give a name to your profile, shown the summary of your selections – e.g. the type of profile, App ID and how many/what certificates are included in the provisioning profile. After giving a name to your profile, click Generate.

Screen Shot 2015-06-23 at 11.28.08 AM

After the system has generated you the provisioning profile, click Done.

In Xcode, you have to refresh the provisioning profiles to download the ad hoc provisioning profile you just generated. It should appear after refresh in the Provisioning Profiles table in the view details dialog in Accounts preferences. More information about Xcode provisioning profiles and refreshing can be found here.

Building Your IPA To Be Compatible With Testdroid Cloud Devices

Building an IPA to be compatible with Testdroid Cloud devices is easy and straightforward. Furthermore, if you want your IPA to be available for additional testers and as they may not have Xcode installed to execute your application, you can create an IPA that can be executed on other devices that weren’t in your device list.

Use Xcode to create an archive and from the Archive organizer export an IPA file with the following steps:

1. Select target and click Archive from product menu:

picture-001

2. Click Distribute.

picture-002

3. Select option Ad Hoc Deployment.

picture-003

4. Select the Provisioning Profile and click Next.

picture-004

Simple as that — Your IPA should be now compatible with iOS devices on Testdroid Cloud. If you are using the latest version of Xcode the up-to-date information about the use of it can be found here.

Happy iOS Testing!

  • David Developer

    Thanks for this. It helped me to get my provisioning profile configured.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close