Pgyer Docs
iOS Signing & Devices

Add a Device UDID to Your App

The full flow for adding a device UDID to an Ad Hoc iOS app: registering the device, generating a provisioning profile, and re-packaging the IPA.

When distributing an iOS app via Ad Hoc, the target device's UDID has to be registered in the app's mobileprovision file, or the app won't install. This page walks through adding a UDID to the provisioning profile.

Prerequisites

  • An Apple Developer Program or Apple Developer Enterprise Program membership that supports Ad Hoc distribution. For the differences between account types, see iOS signing certificate types.
  • The UDID of the device you want to add. See iOS device UDID for how to retrieve it.
  • A Mac with Xcode installed.

In-House is a separate distribution method for eligible Enterprise Program organizations to distribute proprietary internal-use apps privately to employees, without registering each device's UDID. It does not permit public distribution. Enterprise members using Ad Hoc still need the registered devices and provisioning profile described here.

Add the UDID to Your Developer Account

  1. Sign in to Apple Developer.
  2. Go to Certificates, Identifiers & Profiles → Devices.
  3. Click to add a new device and fill in the device name and UDID.

Create a Provisioning Profile

  1. Go to Certificates, Identifiers & Profiles → Profiles, click Create, and choose the Ad Hoc type.
  2. Select the matching App ID.
  3. Select the matching distribution certificate. If none is available, create one first.
  4. Check the devices you want to include.
  5. Name the provisioning profile, then generate and download it.

Re-package the IPA

  1. Open Xcode and select the project.
  2. Set the run target to Any iOS Device (arm64).
  3. Choose Product → Archive and wait for the archive to finish.
  4. Click Distribute App.
  5. Choose Custom and click Next.
  6. Pick the Ad Hoc type and click Next.
  7. Choose Manually manage signing so you can specify the certificate and profile yourself, then click Next.
  8. For the certificate, pick the distribution certificate from the previous section; for the profile, pick the one you just downloaded.
  9. Export the IPA.
If Xcode can't find a certificate you just created, close Xcode and reopen the project.

Upload the Installer to Pgyer

Once uploaded, devices whose UDIDs are in the provisioning profile can install the app. Pgyer labels the release as Beta and lists the UDIDs contained in the profile.

For upload instructions, see Upload Your App.

Create a Distribution Certificate (Optional)

If you don't already have a distribution certificate, follow these steps.

Generate a CSR on Your Mac

  1. Open Keychain Access.
  2. In the top menu, choose Certificate Assistant → Request a Certificate From a Certificate Authority.
  3. Enter your developer account email and a name, then choose Saved to disk.
  4. Pick a location and save the file.

Upload the CSR to Apple Developer

  1. Sign in to Apple Developer.
  2. Go to Certificates, Identifiers & Profiles → Certificates.
  3. Click +, pick the certificate type you need, and continue.
  4. Click Choose File and select the .certSigningRequest file you just generated.
  5. Click Continue and Apple will generate a .cer certificate.
  6. Download the .cer and double-click to install it into Keychain Access.

On this page