简体   繁体   English

Xcode 8中的iOS发行证书问题

[英]iOS Distribution Certificate issue in Xcode 8

I donwloaded from Certificates, Identifiers & Profiles in Apple Developers Provision Profiles and in my Xcode 8 I set Automatically manage signing . 我从Apple Developers Provisions配置Certificates, Identifiers & Profiles中的Certificates, Identifiers & Profiles文件下载,在我的Xcode 8中设置了Automatically manage signing So Xcode does everything for me. 所以Xcode为我做一切。

But when I try to export my build I see this error: 但是,当我尝试导出构建时,会看到此错误:

在此处输入图片说明

Can I solve that problem or I should reset it? 我可以解决该问题还是应该重设它? I have the app in APpStore already, so this is update version and I'm afraid that this will affect the app in AppStore. 我已经在APpStore中安装了该应用程序,因此这是更新版本,担心这会影响AppStore中的应用程序。

Is there a good and safe solution of that problem in Xcode 8? Xcode 8中是否存在针对该问题的良好且安全的解决方案?

此证书不会影响正在存储的应用程序...尝试将其重置或从Apple Developer下载新证书并将其导入到Mac的钥匙串中

If you have access to the mac you used to originally build the app for App Store distribution, you can get the private key for the app store distribution certificate. 如果您有权访问最初用于构建App Store分发应用程序的Mac,则可以获取App Store分发证书的私钥。

To do that, go onto the original Mac, open the Keychain Access app, find the iOS Distribution certificate. 为此,请转到原始Mac,打开“钥匙串访问”应用程序,找到iOS发行证书。 If everything is correct, you will see a little triangle that will let you expand the cert to see the private key associated with it. 如果一切正确,您将看到一个小三角形,该三角形可让您扩展证书以查看与其关联的私钥。 Right click the key and choose "Export". 右键单击该键,然后选择“导出”。 Take the .p12 file created when you export the key and open it on the new Mac. 以导出密钥时创建的.p12文件并在新Mac上打开它为例。 You should see it appear underneath the iOS Distribution cert in the new Mac's Keychain Access app. 您应该看到它出现在新Mac的Keychain Access应用程序中的iOS Distribution证书下方。

If you don't have access, or if your keys / certs are messed up, you can simply generate a new certificate (along with a new key) and tie the iOS Distribution profile to the new certificate. 如果您无权访问,或者您的密钥/证书被弄乱了,则只需生成一个新证书(以及新密钥),然后将iOS发行配置文件绑定到新证书即可。 It won't affect your current app in the App Store, as long as it is all done under the same Apple developer account. 只要它是在同一Apple开发人员帐户下完成的,它就不会影响您在App Store中当前的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM