[英]Certificate error while trying to update app in Xcode
I am trying to update an app that is registered in the App Store. 我正在尝试更新在App Store中注册的应用程序。
I have developed and tried to update on a different Macbook than the one I used. 我已经开发并尝试在与我使用的Macbook不同的Macbook上进行更新。
I archived the project and selected the app and then the Distribute App. 我存档了该项目,然后选择了该应用程序,然后选择了“分发应用程序”。
And IOS App Store -> Upload -> Next .. 和IOS App Store->上传->下一步..
But the first error occurred here. 但是第一个错误发生在这里。
"~~~~".
“~~~~”。 has 3 iOS Distribution certificates.
有3个iOS发行证书。 Contact the creator of one of these certificates to get a copy of the private key.
请与这些证书之一的创建者联系,以获取私钥的副本。
So I extracted the certificate from the existing computer and added it to the keychain. 因此,我从现有计算机中提取了证书并将其添加到钥匙串中。
I clicked Manage Certificates ... and pressed the + button, but a second error occurred. 我单击“管理证书...”,然后按+按钮,但是发生了第二个错误。
You have a current iOS Distribution certificate or a pending certificate request.
您具有当前的iOS发行证书或待处理的证书请求。
I added a private key and tried several methods, but ultimately failed to update the app. 我添加了私钥并尝试了几种方法,但最终未能更新该应用程序。 Please tell me how to fix it.
请告诉我如何解决。
If the certificate is created on other mac then you have to import the particular certificate from the KeyChain with private key. 如果证书是在其他Mac上创建的,则必须使用私钥从KeyChain导入特定证书。
open KeyChain access -> select your certificate -> right click on it and select the Export option from the drop down. 打开KeyChain访问->选择您的证书->右键单击它,然后从下拉列表中选择Export选项。
select your location where you want to save the .p12 file. 选择您要保存.p12文件的位置。
set a password to protect your certificate and click on ok. 设置密码以保护您的证书,然后单击“确定”。
4.once it is created and save. 4.一旦创建并保存。 just copy the certificate.p12 file and install it in your other mac.
只需复制certificate.p12文件并将其安装在其他Mac中即可。
Now download the provisioning profile and rebuild the project. 现在下载预配置文件并重建项目。
login in Xcode with same developer account you are using to upload the build and upload your build on app store. 使用您用于上载构建并在应用商店上载构建的相同开发者帐户登录Xcode。
Hope it will help you. 希望对您有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.