This article guides you on how to prepare one (or many) .p12 files and one (or many) provisioning profile .mobileprovision files which are required for iOS devices.
1. Create and submit .certSigningRequest to Apple Developer to create a .cert file
Step 1: Launch Keychain Access > select Certificate Assistant > select Request a Certificate From a Certification Authority.
Step 2: Next, enter User Email Address and Common Name (any name of choice), leave CA Email Address blank. Select Save to disk option and click Continue.
Choose the location to save the certificate and select Save.
Step 3: Next, go to www.developer.apple.com, login with your Apple Developer account and select Certificate, Identifiers and Profiles.
Select create new Certificates.
Among the options, select Apple Development and select Continue.
Next, select Choose File to upload the Certificate Signing Request generated in step 2 from local machine.
Once the certificate is uploaded, select Download to download the .cert file.
2. Install the .cer to Mac and export the .p12 file
Step 4: Launch Keychain Access, select Certificates category and drag the downloaded .cert file into it.
After dragging the .cert file into Certificates, right-click at it and select Export “….cert file name…”.
3. Download .mobileprovision Provisioning Profile file
Step 1: If you haven’t created an AppID before, here’s the guide to create one. Select create new Identifier.
Select App IDs, then select Continue.
Input descriptions for the App ID, for Bundle ID, input com.* for Bundle ID and choose Wildcard option, then select Continue. The App ID is created.
Step 2: Add your iOS devices UDID to the mobile provisioning file. First, select Devices and Register a Device.
Input Platform, Device Name and Device ID (UDID) for a device, select Continue, then select Register.
You can repeat to add more than one device.
Step 3: Once the device is added, select Generate a Profile.
Select iOS App Development.
Select the App ID that had just been created above and select Continue.
Select the Certificate that had been submitted and select Continue.
Select all devices that are going to be included in the Provisioning profile.
Enter a chosen Provisioning Profile name and select Generate, after that select Download to download theProvisioning Profile file (.mobileprovisioning).