Xcode signing release complaining about development certificate

三世轮回 提交于 2019-12-24 15:26:48

问题


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's complaining about the profile missing a development certificate! I was expecting "iPhone Distribution" instead of "iPhone Developer".

Also, it's listing the development provisioning profile as eligible! Can this happen? I mean a provisioning profile eligible in the release signing?

Am I missing something so obvious here?


回答1:


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).




回答2:


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




回答3:


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.



来源:https://stackoverflow.com/questions/54735615/xcode-signing-release-complaining-about-development-certificate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!