简体   繁体   中英

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

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. Provision Portal  - 创建配置文件

  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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM