iOS: When to Use Which Code Signing Identity in The Build Configuration?

北城以北 提交于 2019-12-08 17:02:06

问题


I am never very clear regarding to which Code Signing Identity I should use in the Build Configuration concerning which scenario, and would love if someone can explain it in the most simple way.

This is what I know:

  1. I create in the Provisioning Portal and implement in my apps both a Development Profile and a Distribution Profile.

  2. Then I assign the Project >> Build Settings >> Code Signing according to the different profiles:

Here is the first question: What is the difference between Release and Distribution? Which one should be connected to the Developer profile and which one should be connected to the Distribution profile?

  1. Now, if I understand correctly, I'm supposed to set the "Scheme" before I run the app:

There are 5 different steps in which I'm required to define the Build Configuration by selecting one of the Code Signing Identity:

Here is the BIG QUESTION... In which scenario I should select which Code Signing Identity?

I always run the app on the same 2 devices: my iPhone and my iPad; both are defined in the Provisioning Portal and set into the profiles. I only want to make sure I run it OK for testing on Simulator and on Device and later on to build the app for uploading to App Store.

Any assistance / direction will be much appreciated.


回答1:


By default, the standard Apple templates only create Debug and Release configurations. Distribution seems to be redundant with Release.

Debug is the configuration used when you are actually working on the code, and Release is used when you archive it for other people to install. You should use your developer profile for Debug and your distribution profile for Release.

You should also probably use your distribution profile for distribution, but you should really check with whoever created that configuration to see what its purpose is first.



来源:https://stackoverflow.com/questions/7904311/ios-when-to-use-which-code-signing-identity-in-the-build-configuration

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