Previous Topic: Install Xcode Version 6.1Next Topic: Enable UIAutomation


IPA Signing

To test iOS apps on devices, you must get SSL certificates and provision your device for testing. This can be done at the Apple Developer Member Center.

You can then provision your device with the mobile provision file to identify the apps that are signed with a certificate. Adding the mobile provision file to an .ipa file (through IPA signing) ensures that the signatures on the certificate match the signatures of those who can run the apps on their devices.

Mobile Testing can sign iOS .ipa files before deploying them to your test device. Some configuration is required for it to function properly.

Follow these steps:

  1. Log in to the Apple Developer Member Center.
  2. Click Certificates, Identifiers, & Profiles.
  3. Connect your iOS device with a USB cable.
  4. Under iOS Apps (on the left), click Devices.
  5. To add your device, click the + icon.

    Note: You can also add your device through iTunes.

  6. Confirm that your device is included in the list of iOS devices.
  7. Under Certificates, click Development.
  8. Click the certificate in the list.
  9. Click Download, and save it to your hard drive.
  10. Install this certificate into Keychain Access.
  11. Under Provisioning Profiles, click Development.
  12. Select the iOS Team Provisioning Profile in the list.
  13. Download this file and save it on your hard drive.

    The file name is similar to this example: iOS_Team_Provisioning_Profile_.mobileprovision.

  14. Open DevTest.
  15. In the lisa.properties property file, set the following project properties:
    MOBILE_PROVISION = path to iOS_Team_Provisioning_Profile_.mobileprovision
    
    IOS_CERTIFICATE = name of the certificate as displayed in Keychain Access (not the certificate filename itself)
    

    Note: You do not need to type the exact string, as the codesign utility can match it. You can use a name such as "iPhone Developer" and that would be enough to be a unique name. However, if you have other iOS certificates, it is good practice to use the entire certificate name.