Xcode signing release complaining about development certificate

前端 未结 3 464
刺人心
刺人心 2021-01-16 14:44

Straight to the point. Is this normal?

As you can see, this is the release section of the signing. I\'m choosing a distribution provisioning profile, yet it

相关标签:
3条回答
  • 2021-01-16 15:34

    If you are using manual signing, go to build settings under your app's target.

    • Under "Signing > Code Signing Identity > Release": Choose your specific production certificate from Keychain.
    • Under "Signing > Development Team > Release": Choose your team.
    • Under "Signing > Provisioning Profile > Release": Choose the appropriate distribution profile that is associated with the distribution certificate specified before.

    This setup resolved the issue for me

    0 讨论(0)
  • 2021-01-16 15:34

    It is normal. Did you created a production certificate? And did you sign the production provision-profile with it? By the way - you can let xcode manage this for you.

    0 讨论(0)
  • 2021-01-16 15:35

    I'm choosing a distribution provisioning profile

    Well, don’t. That’s wrong. You use a development provisioning profile for all build and run, and archive, operations — regardless of whether you are running on simulator or device, regardless of what the build configuration is (release or debug).

    Distribution profile is purely for distribution (e.g. re-signing when exporting an archive up to the App Store).

    Also, you should use automatic signing throughout the process; it knows more than you do (I say that in a nonpersonal way; it knows more than I do too!)

    So, to sum up:

    • Use automatic signing.

    • Even if you use manual signing, use the development profile for everything in the interface you showed in your screen shot.

    This is what the configuration for automatic signing looks like:

    Here is how it configures your actual settings:

    Notice that it uses the developer certificate, not the distribution certificate, for all configurations. If you must use manual signing, that is what you want to do too.

    You won't need the distribution profile until a much later step in the process, when you export from an existing archive in the Organizer window, and at that point you'll be using a completely different interface. You can use automatic signing there too (though you don't have to).

    0 讨论(0)
提交回复
热议问题