Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: minor formatting changes

Table of Contents
maxLevel4
minLevel3
classtutTOC
excludeGoal.*|Resources.*|Steps.*

Objective

In this chapter, you will learn the steps necessary to deploy an app to an iOS device for testing.

...

In addition to your developer certificate, you will need to download and install the WWDR Intermediate Certificate, provided by Apple. You can download this file from the iOS Certificates, Identifiers & Profiles page during the first step when you created a certificate. Double-click the resulting file to install it to your keychain.

Note
Back
Up Your Private Key
up your private key

It is critical that you save your private key somewhere safe in the event that you need to develop on multiple computers or decide to reinstall your system OS. Without your private key, you will be unable to sign binaries and test your application on any Apple device. The private key was generated by the Keychain application when you created the Certificate Signing Request (CSR). It has the same name as the Common Name field when you generated the CSR.

  1. To export your private key, open up the Keychain Access Application and select login under Keychains and Keys under Category.
  2. Highlight the private key associated with your iOS Development Certificate.
  3. From the menu bar, select File > Export Items.... Save your key in the Personal Information Exchange (.p12) file format.
  4. You will be prompted to create a password which will be used when you attempt to import this key on another computer.
  5. You can now transfer this .p12 file between systems. Double-click on the .p12 file to install it on a system. You will be prompted for the password you entered above.

...

Once you are done with the preceding steps, Studio makes it easy to build and install your app to a locally connected device.

Image Modified

To launch a project in run mode, first select the project in the Project Explorer view, then in the global tool bar, select Run from the Launch Mode drop-down list.  In the Target drop-down list, select iOS Device, then select a device to directly install your application to it. If the Launch Automatically option is enabled under the Target drop-down list, the application will be automatically launched after the device is selected.  If not, you need to click the Launch button to start the build process.

...

On the General page, ensure the requirements have been satisfied and select the desired SDK version, then click Next.

Image Modified

On the Certificates page, choose your developer certificate and keychain, then click Next.
Image Modified

On the last page, provisioning profiles are specified. To install the provisioning profile, click the Browse... button, locate your .mobileprovision file, and click Open to install that profile into Xcode. If you have installed more than one provisioning profile, make sure to choose the one that corresponds to your app and your developer certificate. Make sure your device is connected via USB and click Finish.

Image Modified

If you get errors, the most likely source of trouble is that you did not select the correct developer certificate or provisioning profile.

...

You can navigate to the iOS Platform preference page to view and modify current iOS platform settings using the Manage settings link

 Image ModifiedImage Modified

Building your app with the CLI

To build your application using the Titanium CLI, run the following command:

Code Block
languagebash
appc run -p ios -T device  -C <DEVICE_UDID> [-V "<DEVELOPER_CERTIFICATE_NAME>"  -P <PROVISIONING_PROFILE_UUID>]

If you omit any of the optional parameters, the CLI will prompt you for the information and provide you with available options.  You can also retrieve the information from Xcode's Devices and Simulators window or using the following CLI command:

Code Block
languagebash
appc ti info -t ios

Installing apps to remote devices

...

Some of these systems enable you to gather user feedback, crash logs, and similar data from testers. There are free modules that help you integrate TestFlight App's data collection routines into your app.

Adding iTunes

...

artwork

Adding iTunes artwork to your project gives your app a polished look when you are testing or deploying to test users. In order to get your application's icon to appear in iTunes, follow these steps:

...