Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 - creating the profiles

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

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: enter image description here

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

enter image description hereenter image description here

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.

like image 363
Ohad Regev Avatar asked Oct 26 '11 14:10

Ohad Regev


1 Answers

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.

like image 55
Jim Avatar answered Oct 07 '22 04:10

Jim