iOS:何时在构建配置中使用哪个代码签名身份? [英] iOS: When to Use Which Code Signing Identity in The Build Configuration?

查看:160
本文介绍了iOS:何时在构建配置中使用哪个代码签名身份?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于在哪种情况下应该在构建配置中使用哪种代码签名身份,我从来都不是很清楚,并且希望有人能以最简单的方式进行解释。

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.

这是我所知道的:


  1. 我在Provisioning Portal中创建并在我的应用程序中同时实现开发概要和分发配置文件。

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

然后根据不同的配置文件分配项目>>构建设置>>代码签名

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. 现在,如果我理解正确,则应该在运行应用程序之前设置方案:

我需要通过5个不同的步骤来选择一个定义构建配置的步骤代码签名身份

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

这是大问题... 在哪种情况下,我应该选择哪种代码签名身份?

我始终在以下位置运行该应用程序两个相同的设备:我的iPhone和iPad;两者都在Provisioning Portal中定义,并设置在配置文件中。
我只想确保我可以在模拟器和设备上正常运行它,然后再构建该应用程序以上传到App Store。

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.

任何

推荐答案

默认情况下,标准的Apple模板仅创建Debug和Release配置。发行版似乎与Release无关。

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

Debug是在实际处理代码时使用的配置,而Release在将其归档供他人安装时使用。 。您应该将开发人员配置文件用于Debug,将发布配置文件用于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.

这篇关于iOS:何时在构建配置中使用哪个代码签名身份?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆