User Tools

Site Tools


export_and_install_ipa_on_old_ios

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
export_and_install_ipa_on_old_ios [2026/09/21 11:08]
admin
export_and_install_ipa_on_old_ios [2026/09/21 11:09] (current)
admin
Line 77: Line 77:
  
 **If you register another device later, regenerate the profile and export the IPA again.** Registering a UDID does not update profiles already embedded in exported apps. **If you register another device later, regenerate the profile and export the IPA again.** Registering a UDID does not update profiles already embedded in exported apps.
 +
 +
 +## in step 4.8 I got the error saying "​Profile doesn'​t include the selected signing certificate"​ even though I've selected my Distribution certificate and the Ad Hoc provision profile I just created
 +
 +That error means **the exact certificate selected in Xcode isn’t included in the profile Xcode is using**. Two certificates can both display `Apple Distribution:​ Your Name` while being different certificates. Profiles contain specific certificates,​ not just a team or certificate name. [Apple’s explanation](https://​developer.apple.com/​documentation/​technotes/​tn3125-inside-code-signing-provisioning-profiles)
 +
 +Try this:
 +
 +1. **Identify your local signing certificate.**
 +   Open **Keychain Access → My Certificates**,​ find your **Apple Distribution** certificate,​ and expand it. It should have a **private key** underneath. Double-click the certificate and note its **serial number** and expiration date.
 +
 +   If there’s no private key, you need to import the certificate and private key (`.p12`) from the Mac where it was created, or create a new distribution certificate through Xcode. Downloading a `.cer` alone won’t restore the private key. [Apple’s signing guidance](https://​developer.apple.com/​documentation/​Xcode/​sharing-your-teams-signing-certificates)
 +
 +2. **Match it to the certificate in the Developer portal.**
 +   Open [Certificates](https://​developer.apple.com/​account/​resources/​certificates/​list). If there are similarly named distribution certificates,​ download the relevant `.cer` and inspect its serial number in Keychain Access to identify the exact match.
 +
 +3. **Regenerate your Ad Hoc profile with that certificate.**
 +   Open [Profiles](https://​developer.apple.com/​account/​resources/​profiles/​list),​ select your profile, and click **Edit**:
 +   - Select the matching distribution certificate.
 +   - Keep your iPhone checked in the devices list.
 +   - Save/​generate and download the updated profile.
 +
 +   Apple supports changing the certificate and devices when editing a profile. [Profile editing instructions](https://​developer.apple.com/​help/​account/​provisioning-profiles/​edit-download-or-delete-profiles)
 +
 +4. **Import the freshly downloaded profile during export.**
 +   ​Cancel the current export and start **Distribute App → Ad Hoc → Manually manage signing** again. Choose the matching certificate and use **Import Profile** to select the new file, avoiding a stale profile with the same name.
 +
 +If your archive includes extensions, check each extension’s profile too: all must include the certificate selected for export.
 +
 +**You normally don’t need to rebuild the archive or revoke any certificates to fix this export-time mismatch.**
export_and_install_ipa_on_old_ios.txt · Last modified: 2026/09/21 11:09 by admin