Search code examples
iosxcodeprovisioning-profile

iOS Ad-Hoc Distribution: Can't sign provisioning profile with distribution certificate in Xcode


I am trying to perform an ad-hoc deployment of my iOS app. I cannot use automatically managed provisioning profiles. So I have manually created an iOS Distribution provisioning profile at developer.apple.com and signed it with an associated Distribution Certificate.

The problem is Xcode only lets me sign the distribution provisioning profile with a developer certificate:

enter image description here

developer.apple.com does not let you create a distribution provisioning profile with a developer certificate, so I don't know why Xcode does not let you sign with that same certificate. I have both development and distribution certificates valid (and they are not expired).

How do I get Xcode to accept my distribution certificate as a signing certificate for the iOS Distribution provisioning profile?


Solution

    • First Both your certificates and Provisioning Profile should be of Ad-hoc Distribution type.
    • Make sure you are using same certificate requested by your system (Request a Certificate from Certificate Authority, we do from keychain)