Trying to submit an update to my app to the app store, my certificates were expired. so I deleted all the certificates and provisioning profiles from https://developer.apple.com/account/ios/certificate/ and from the Keychain and deleted provisioning profiles from "~/Library/MobileDevice/Provisioning Profiles" and option-clicked Product → Clean Build Folder, and started process from the beginning, but new problem arises (see title of post).
Here is what I did:
- In https://developer.apple.com/account/ios/certificate/ clicked Certificates then selected "iOS, tvOS, watchOS" from the combo lisstbox.
- Clicked [+] on top right corner.
- Clicked the "App Store and Ad Hoc" radio button.
- Clicked Continnue
- Launhed Keychain App
- Keychain Access → Certificate Assistant → Request a Certificate from Certificate Authority...
- User email same as my Apple ID, Common Name my first and last name.
- Click the "Saved to disk" radio button, Continue and saved the "CertificateSigningRequest.certSigningRequest" file to Downloads folder.
- Back to https://developer.apple.com/account/ios/certificate/ clicked continue.
- Clicked choose file... and selected "CertificateSigningRequest.certSigningRequest" and clicked Continue.
- On the "Your certificate is ready." page I clicked Download to download the "ios_distribution.cer" file to the Downloads folder and clicked done.
- Double clicked "ios_distribution.cer" file which opened up in Keychain Access and confirmed it was addedd successfuly.
Certificate appears as:
🔽iPhone Distribution: My Name (UKF99V45DM)
🔑My Name
kind: private key, RSA, 2,048-bit
usage: any - Back to https://developer.apple.com/account/ios/certificate/ clicked on Provisioning Profiles
- Clicked [+] on top right corner.
- Clicked "Distribution - App Store" radio button, then clicked Continue.
- Chose the App ID (that I'm working on), then clicked continue.
- Clicked the iOS Distribution certificate radio button, then continue.
- For profile name I wrote: "My app name Provisioning Profile", then clicked continue.
- Then clicked the download button to download the "My_app_name_Provisioning_Profile.mobileprovision" file.
- Back to Xcode, opened up the app project file.
- In the Project - Targets window, I clicked the "Automatically manage signing" checkbox, selected my team name, then unckecked the "Automatically manage signing" checkbox.
- For Signing for Debug and Release, I did the same:
- Provision Profile → Import Profile... and selected the "My_app_name_Provisioning_Profile.mobileprovision" file from step 19.
- But now for both the provision profile status in Xcode is: Provisioning profile "My App Name Provisioning Profile" doesn't include signing certificate "iPhone Developer: My Name (XUM88H55M8)".
Even though I double check that in Keychain Access the certificate is in there with a key.
Any help would greatly be appreciated.
I would place screenshots here but this forum desn't seem to permit inserting screenshots.
Thank you.