iOS assets for signing apps

Code signing your app assures users that it is from a known source and that it hasn't been modified since it was last signed. Before your app can be installed on a device, it must be signed with a certificate and provisioning profile issued by Apple. The certificate and provisioning profile provide the identity of the developer, and the list of devices on which distribution of the app is allowed.

Generate a development certificate

The steps below describe how to generate a development certificate of an Apple Developer account.

  1. Open the Keychain Access app.

  2. Select Certificate Assistant > Request a Certificate From a Certificate Authority.
  3. Enter your email address (twice), name, and select Save to disk. Click Continue. This creates a *.csr file.
  4. Open a browser and sign into Apple Developer.
  5. Select Certificates, Identifiers & Profiles.
  6. In the Certificate section, select All.
  7. Click the + (Add) button.
  8. When you are prompted to indicate the type of certificate, select iOS App Development and click Continue. Click Continue again in the next screen.
  9. Click Choose File and locate the *.csr file created above. Click Generate.
  10. Click Download to save the certificate to your machine.
  11. Double click on the downloaded certificate to install it to the Keychain Access.

Back to top

Prepare to create a provisioning profile

Provisioning profiles allow you to install apps on your iOS devices. A provisioning profile requires an App ID, device identifier (UDID), and a developer certificate.

Each device under test must be included in the provision profile—its UDID must be included in list of devices.

Note: The provisioning profile is a required for submitting your app to the App Store.

This section describes how to create an App ID and obtain a UDID. For details about generating a Developer certificate, see Generate a development certificate.

Create an App ID

The first step in preparing for a provisioning profile is creating an App ID. You should create a wildcard App ID which allows you to match all bundle IDs, and include all the required app services.

To create a App ID:

  1. Open a browser and sign into the Apple Developer site.
  2. Navigate to Certificates, Identifiers & Profiles.
  3. Select Identifiers > App IDs in the navigation pane and click the + (Add) button to add a new Identifier.

  4. In the Register a New Identifier section, select App IDs.

  5. In the Register an App ID section, enter a description for the App ID in the Description field.

  6. For the Bundle ID, select Explicit or Wildcard.

    • Select Explicit if you intend to use entitlements.
    • Select Wildcard if you want to use the same provisioning profile for all apps that include iOS agents. Enter a domain and sub-domain followed by an asterisk (*). A standalone asterisk is not supported.
  7. In the Capabilities section, select all the capabilities that you would like to enable in your app.

  8. Click Continue, then Register, then Done to complete the creation of the App ID.

Create and register a UDID

This section describes how to get a UDID (Unique Device ID) of the device you want to include in the provision profile.

To obtain and register the device's UDID:

  1. Physically connect your iPhone device to your MacBook.
  2. Start iTunes.
  3. Locate your device in the list of devices and click it to get the device ID. Copy it to the clipboard.
  4. Navigate to Devices > iPhone and click + (Add) in the upper right-hand corner.
  5. Choose Register Device. Give the device a name and paste in the device UDID you got from iTunes.
  6. Click Continue.

Back to top

Generate a development provisioning profile

Once you have created an App ID, obtained a UDID, and signed a certificate, you can generate a development provisioning profile.

To generate a provisioning profile:

  1. Open a browser and log in to Apple Developer.
  2. Navigate to Provisioning Profiles > Development.
  3. Click the + (Add) button in the upper right-hand corner.
  4. In the Development section, select iOS App Development. This indicates that you are creating a provisioning profile for development purposes. Click Continue.
  5. Choose the wildcard App ID, defined earlier. Click Continue.
  6. Select your development certificate. Click Continue.
  7. Select the devices you want to include in the provisioning profile. Make sure the UDIDs of your test devices are included and selected. Click Continue.
  8. Provide a name for the profile. Click Continue.
  9. Click Download. After the download, click Done.

Back to top


See also: