Xcode 7 的签名身份对话框窗口中的重置按钮如何工作

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33471717/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:09:12  来源:igfitidea点击:

How does the reset button function in Xcode 7's signing identities dialog window

iosxcodecode-signing

提问by Azu

I can archive my application with my code signing identities and provisioning profile for distribution. And the binary created can be validated successfully.

我可以使用我的代码签名身份和配置文件归档我的应用程序以进行分发。并且可以成功验证创建的二进制文件。

However it bothers me that Xcode 7 shows a reset button besides the iOS distribution option in the signing identity dialog.

然而,让我感到困扰的是,除了签名标识对话框中的 iOS 分发选项之外,Xcode 7 还显示了一个重置​​按钮。

enter image description here

在此处输入图片说明

How does the reset button function?

复位按钮如何工作?

Should I press the button to reset my signing identity accordingly or just ignore it since I can archive without error messages?

我应该按下按钮来相应地重置我的签名身份还是忽略它,因为我可以在没有错误消息的情况下进行存档?

Some guess:

一些猜测:

According to Apple

苹果称

Resetting Certificates Using Xcode

If Xcode detects an issue with a signing identity, it displays an appropriate action in Accounts preferences. If Xcode displays a Create button, the signing identity doesn't exist in Member Center or on your Mac. If Xcode displays a Reset button, the signing identity is not usable on your Mac—for example, it is missing the private key. If you click the Reset button, Xcode revokes and re-creates the corresponding certificate.

使用 Xcode 重置证书

如果 Xcode 检测到签名身份问题,它会在“帐户”首选项中显示相应的操作。如果 Xcode 显示“创建”按钮,则会员中心或 Mac 上不存在签名标识。如果 Xcode 显示“重置”按钮,则签名身份在您的 Mac 上不可用——例如,它缺少私钥。如果单击“重置”按钮,Xcode 会撤销并重新创建相应的证书。

In my keychain there are two certificate, one of which with missing private key. I guess that xcode 7 might detect the one with missing private key and thus kept showing me the reset button.

在我的钥匙串中有两个证书,其中一个缺少私钥。我猜 xcode 7 可能会检测到缺少私钥的那个,因此一直向我显示重置按钮。

回答by Jeff Sorrentino

I have seen the same behavior when I have multiple certificates with the same name but different expiration dates. In this case, tapping the "Reset" button disables the button for the current session of the dialog, but nothing seems to happen with regard to revoke/reissue of certificate(s).

当我有多个名称相同但到期日期不同的证书时,我看到了相同的行为。在这种情况下,点击“重置”按钮会禁用对话框当前会话的按钮,但似乎没有任何关于证书的撤销/重新颁发的事情发生。