iPhone开发者不匹配任何有效证书(Xcode)

时间:2022-10-09 18:05:52

Hi I've kind of been cornered by apple here, I submitted a technical support query, one of the free ones thats comes free when you pay into the developer program only to be told that they won't be in the office until after Thanksgiving, a problem I overlooked as I am from Ireland. I really need help on this as I've tried looking in forums and I've tried solutions that were given for similar problems but I still can't crack it.

你好我在这里被苹果,我提交了一份技术支持查询,免费的这是免费的,当你支付到开发者计划却被告知他们不会在办公室直到感恩节,我忽视了我来自爱尔兰的问题。我确实需要帮助,因为我尝试过在论坛上寻找,我尝试过解决类似问题的解决方案,但我仍然无法破解。

The screenshot images can be seen on this page.. http://www.heffernanwebservices.ie/blank.html

截图可以在这个页面上看到。http://www.heffernanwebservices.ie/blank.html

Here it goes...

这里是……

DESCRIPTION OF PROBLEM On trying to build my project "Mulligan IRL" in xcode i get the following error " Code Sign error: The identity 'iPhone Developer: Cian Heffernan (8ELM27DL8F)' doesn't match any valid certificate/private key pair in the default keychain"

关于试图在xcode中构建我的项目“Mulligan IRL”的问题,我得到了以下错误“代码符号错误:标识符‘iPhone开发者:Cian Heffernan (8ELM27DL8F)’在默认密钥链中没有匹配任何有效证书/私有密钥对”

[Screenshot 1]

(截图1)

When I navigate to code signing in the build settings of the project i can see that when I click code signing identity for iphone developer or iphone distribution it has "(no profiles currently match) beside them. I then headed to the keychain access window in utilities and look in certificates and find that both the developer and distribution certificates will not expire until next August and November. Next I headed to the organizer in xcode. I see in provisioning profiles I have 8 profiles there! I don't know why I have so many.(2nd attachment)

当我在项目的构建设置中导航到代码签名时,我可以看到,当我为iphone开发人员或iphone发行版单击代码签名标识时,它旁边就有“(当前没有配置文件)”。然后,我前往公用事业公司的keychain访问窗口,查看证书,发现开发人员和发行证书都将在明年8月和11月到期。接下来我去了xcode的组织者。我在配置文件中看到我有8个配置文件!我不知道为什么我有这么多。(附件二)

[Screenshot 2]

(截图(2)

As you can see ONE of the iOS team provisioning profiles will expire in 11days so I just tried to renew that. When I try this I get an error:(3rd attachment)

正如您所看到的,一个iOS团队配置文件将在11天内过期,因此我试图更新它。当我尝试这个时,我得到一个错误:(第三个附件)

[Screenshot 3]

(截图3)

I then head to the provisioning portal to see why it wasn't found but I can see the profile. (4th attachment)

然后我前往供应门户查看为什么没有找到它,但是我可以看到概要文件。(附件4)

[Screenshot 4]

(截图4)

I have no idea why I am getting this error. I would appreciate any help on the matter.

我不知道为什么会出现这个错误。在这件事上我希望得到任何帮助。

5 个解决方案

#1


14  

For certificate to be valid it needs to be associated in your Keychain with a private key. Find the "iPhone Developer..." certificate in your Keychain and see if it's got a private key associated with it.

要使证书有效,它需要在密钥链中与私钥相关联。在您的密钥链中找到“iPhone开发人员……”证书,并查看它是否具有与之关联的私钥。

This can occur when you develop on two or more computers. You need to export the certificate+private key pair from the computer where you generated the private key first. Then import it onto all computers you do development on.

当您在两台或多台计算机上进行开发时,可能会发生这种情况。您需要将证书+私钥对从计算机导出,在那里您首先生成私钥。然后将它导入到您开发的所有计算机上。

See Apple's Transferring Your Identities for more detailed info.

有关更详细的信息,请参见苹果的身份转移。

#2


7  

This could be caused by not having the private key associated with your certificate in your keychain. You can verify this by going to Keychain Access and choosing "Certificates" from the "Category" area at the bottom left. If your developer certificate does not appear when filtering that way, you are missing the private key for it.

这可能是因为在密钥链中没有与证书关联的私钥。您可以通过访问Keychain访问并从左下角的“类别”区域中选择“证书”来验证这一点。如果您的开发人员证书在以这种方式过滤时没有出现,那么您将丢失它的私钥。

If this is the case, you'll have to add your private key to the keychain, or else just reject and re-issue your development certificate with a new private key (you can find steps for this in the provisioning portal.)

如果是这种情况,您将不得不将您的私钥添加到密钥链中,否则只需拒绝并使用新的私钥重新颁发您的开发证书(您可以在供应门户中找到这方面的步骤)。

#3


0  

a useful link from Apple about the submission process. hope it helps

苹果关于提交过程的有用链接。希望它能帮助

#4


0  

I was using AppCode, but for me simply adding a new Keychain via Keychain Access called iPhone Developer allowed me to start building in AppCode.

我使用的是AppCode,但对我来说,只要通过名为iPhone Developer的密钥链访问添加一个新的密钥链,我就可以开始构建AppCode。

#5


0  

Apple has a great article regarding Certificates and Provisioning-Profiles,
with excellent troubleshooting:

苹果有一篇关于证书和提供概要文件的很棒的文章,并且有出色的故障排除:

iOS Code Signing Troubleshooting

iOS代码签名故障排除

The most useful part I found was regarding cleanup of old provisioning-profiles from Xcode:

我发现的最有用的部分是关于清除Xcode中旧的临时配置文件:

"Keep Your Profile Library Clean
...You need to manually remove provisioning profiles you are not using,
otherwise, Xcode will reimport potentially old or duplicate certificates into the keychain
and that can cause build errors.
"

“保持你的个人资料库整洁……”您需要手动删除不使用的配置文件,否则,Xcode将重新导入潜在的旧或重复的证书到keychain中,从而导致构建错误。

And as a weapon of last resort, you can use this procedure:
How do I delete/revoke my certificates and start over fresh?

作为最后的武器,您可以使用这个过程:我如何删除/撤销我的证书并重新开始?

#1


14  

For certificate to be valid it needs to be associated in your Keychain with a private key. Find the "iPhone Developer..." certificate in your Keychain and see if it's got a private key associated with it.

要使证书有效,它需要在密钥链中与私钥相关联。在您的密钥链中找到“iPhone开发人员……”证书,并查看它是否具有与之关联的私钥。

This can occur when you develop on two or more computers. You need to export the certificate+private key pair from the computer where you generated the private key first. Then import it onto all computers you do development on.

当您在两台或多台计算机上进行开发时,可能会发生这种情况。您需要将证书+私钥对从计算机导出,在那里您首先生成私钥。然后将它导入到您开发的所有计算机上。

See Apple's Transferring Your Identities for more detailed info.

有关更详细的信息,请参见苹果的身份转移。

#2


7  

This could be caused by not having the private key associated with your certificate in your keychain. You can verify this by going to Keychain Access and choosing "Certificates" from the "Category" area at the bottom left. If your developer certificate does not appear when filtering that way, you are missing the private key for it.

这可能是因为在密钥链中没有与证书关联的私钥。您可以通过访问Keychain访问并从左下角的“类别”区域中选择“证书”来验证这一点。如果您的开发人员证书在以这种方式过滤时没有出现,那么您将丢失它的私钥。

If this is the case, you'll have to add your private key to the keychain, or else just reject and re-issue your development certificate with a new private key (you can find steps for this in the provisioning portal.)

如果是这种情况,您将不得不将您的私钥添加到密钥链中,否则只需拒绝并使用新的私钥重新颁发您的开发证书(您可以在供应门户中找到这方面的步骤)。

#3


0  

a useful link from Apple about the submission process. hope it helps

苹果关于提交过程的有用链接。希望它能帮助

#4


0  

I was using AppCode, but for me simply adding a new Keychain via Keychain Access called iPhone Developer allowed me to start building in AppCode.

我使用的是AppCode,但对我来说,只要通过名为iPhone Developer的密钥链访问添加一个新的密钥链,我就可以开始构建AppCode。

#5


0  

Apple has a great article regarding Certificates and Provisioning-Profiles,
with excellent troubleshooting:

苹果有一篇关于证书和提供概要文件的很棒的文章,并且有出色的故障排除:

iOS Code Signing Troubleshooting

iOS代码签名故障排除

The most useful part I found was regarding cleanup of old provisioning-profiles from Xcode:

我发现的最有用的部分是关于清除Xcode中旧的临时配置文件:

"Keep Your Profile Library Clean
...You need to manually remove provisioning profiles you are not using,
otherwise, Xcode will reimport potentially old or duplicate certificates into the keychain
and that can cause build errors.
"

“保持你的个人资料库整洁……”您需要手动删除不使用的配置文件,否则,Xcode将重新导入潜在的旧或重复的证书到keychain中,从而导致构建错误。

And as a weapon of last resort, you can use this procedure:
How do I delete/revoke my certificates and start over fresh?

作为最后的武器,您可以使用这个过程:我如何删除/撤销我的证书并重新开始?