English 中文(简体)
如何设定用于 XCode 的钥匙链的身份偏好?
原标题:How to set an identity preference in keychain to be used by XCode?

XCode 在“ 构建设置” 的“ 代码签名身份” 下有一个“ 自动配置选择器 ” 。

在键链中存在 2个“ iPhone Developmenter” 证书, 似乎有办法引导 XCode 偏好一个而不是另一个 。

Codesign 列出以下解决身份的规则。

  1. 身份首先被视为关键链式身份偏好的全称

  2. 通过搜索所有关键链以获取其主名(仅)包含该身份的证书(仅)通用名称的证书,该身份就定位于所有关键链

    • If there are multiple matches, the operation fails and no signing is performed
  3. 如果身份完全由四十六进制位数组成,则被解释为SHA-1散列。

“iPhone Developmenter”上有两个部分匹配,

尝试在提示输入“ 地址( URL) 或电子邮件地址” 的证书上创建身份偏好 。 无法确定 URL 指的是什么或电子邮件 。

使用“ iPhone Developmenter” 作为数值( 关键链被接受), 但 XCode 不选择首选证书 。

< 坚固> 是否有方法使用“ 自动配置选择器”, 但它是否已经就“ 身份偏好” 下定决心?

问题回答

我想现在为时已晚, 但在 Xcode 9 中, 在 < code> “ 建筑设置” - & gt; “ 代码签名身份” 中, 有 < code> “ 代码签名样式” = manual/ Auto , 现在有两个下调列表可供您选择, 对于两个目标, a) iOS 开发者/ 分布配置配置类型之一, b) 开发者/ 分配者的 KeyChains 身份 。

为我工作的是:

  1. use the same or two different Provisioning Profiles for Debug and Release (created and exported from my developer account website and imported in Xcode)
  2. set "Code Signing Style" to "Manual"
  3. select the imported PPs for the two targets
  4. set the a) and b) lists to the developer/distributor identity whose certificate was included in the PP(s) created in 1)

现在,我可以用“运行”按钮从 Xcode 正常运行调试目标,同时将释放目标归档并用分布 PP导出。





相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签