Search code examples
iosxcodeprovisioningapp-distribution

Xcode Distribution Certificate Private Key Not Installed


I am trying to Ad-hoc distribute my app. However, when I archive and than try to export it I am getting following screens: enter image description here

On this screen, when I click "Manage Certificates" button, I get following screen: enter image description here

I tried to regenerate provision profile on Apple Developer Portal. I generated and downloaded Mobile Provision files and tried to export again the app but I am received the same missing private keys error.

UPDATE I tried to manually sign my app. When I choose "Download Profile" from 'Provisioning Profile' it gives me following output screen:

enter image description here

Thanks


Solution

  • I think you should start over.

    1. Quit Xcode.

    2. Delete DerivedData folder.

    3. Delete ~/Library/MobileDevice/Provisioning Profiles folder.

    4. In Keychain Access, delete everything related to Apple development.

    5. Go to portal in browser and delete all certificates and profiles.

    Now start afresh.