Pgyer document center

Add Device UDID

Preface

Note: This article is applicable to iOS developers who only have an Apple Individual Developer Account, Company Developer Account, or Education Developer Account.

For developers without an Enterprise Developer Account ($299), if you want to use Pgyer to distribute your app to other users' iOS devices, you can only achieve this by adding the UDID of the target device to the app's mobileprovision file. This article explains how to correctly add the UDID of an iOS device to the app's mobileprovision file.

For an explanation of Apple Developer Account types, please refer to: iOS App Certificate Selection.

1. Obtain the UDID of the iOS Device

Pgyer provides a very convenient feature to help developers quickly obtain the UDID of a device. For details, please refer to the article: Obtaining the UDID of an iOS Device.

2. Add the UDID to the Developer Account

  1. Log in to Apple Developer.
  2. Go to Certificates, Identifiers & Profiles -> Devices.
  3. Under Devices, add a new device and enter the UDID.

3. Create a Provisioning Profile

  1. In Profiles, click Create and select the Ad Hoc type. Step 1
  2. Select your App ID. Step 2
  3. Choose the corresponding Ad Hoc certificate. If you don't have one, please create a certificate first. Step 3
  4. Select the devices you want to add. Step 4
  5. Fill in the Provisioning Profile name, generate, and download it.

4. Repackage the IPA

  1. Open Xcode and select your project.
  2. Choose Any iOS Device (arm64) as the build target.
  3. In the top menu, click Product -> Archive and wait for the build to complete.
  4. Click Distribute App.
  5. Select Custom and click Next. Step 5
  6. Choose the Ad Hoc type and click Next. Step 6
  7. Select Manually manage signing for custom certificates and profiles, then click Next. Step 7
  8. For the certificate, select the Ad Hoc certificate chosen in Step 3 -> 3. For the provisioning profile, select the Provisioning Profile file downloaded in Step 3 -> 5.(If you cannot find the created certificate, please try closing Xcode and reopening the project.) Step 8
  9. Generate the IPA file.

5. Upload the App Package (.ipa file) to Pgyer

The app package generated in this way can be uploaded to Pgyer and installed on devices with the added UDID. After uploading to Pgyer, the app will be displayed as an Internal Test Version, and the UDID list included in the Provisioning Profile file of the package will be shown.

For instructions on how to upload the app package to Pgyer, please refer to the article: App Upload.

(Optional) Create an Ad Hoc Certificate:

1. Generate a CSR File (on Mac)

  1. Open Keychain Access.
  2. In the top menu, select Certificate Assistant -> Request a Certificate From a Certificate Authority. Step 1
  3. Fill in the Developer Account Email and name, and select Save to Disk. Step 2
  4. Choose the save location and complete the process.

2. Upload the CSR File to Apple Developer

  1. Log in to Apple Developer.
  2. Go to Certificates, Identifiers & Profiles -> Certificates. Step 1
  3. Click the “+” button, select the type of certificate to create, and proceed to the next step. Step 2
  4. Click “Choose File” and select the .certSigningRequest CSR file you just generated. Step 3
  5. Click “Continue”, and Apple will generate a .cer certificate file.
  6. Download the .cer file and double-click to install it in Keychain Access.