简体   繁体   English

尝试在Xcode中更新应用时出现证书错误

[英]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导入特定证书。

  1. open KeyChain access -> select your certificate -> right click on it and select the Export option from the drop down. 打开KeyChain访问->选择您的证书->右键单击它,然后从下拉列表中选择Export选项。

  2. select your location where you want to save the .p12 file. 选择您要保存.p12文件的位置。

  3. 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中即可。

  1. Now download the provisioning profile and rebuild the project. 现在下载预配置文件并重建项目。

  2. 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.

相关问题 尝试在Xcode 5中为应用商店创建分发证书 - Trying to create Distribution certificate for app store in Xcode 5 尝试向 XCode 中的应用程序提交更新,但我不断收到错误消息…… - Trying to submit an update to an app in XCode, but I keep getting an error… 尝试使用Xcode构建应用程序时出现React-native错误 - React-native Error while trying to build app using Xcode 更新到Xcode 10.2 beta 3后启动应用程序时出现Swift错误 - Swift error while starting app, after update to Xcode 10.2 beta 3 尝试上传Xcode项目时出错:请更新Xcode并重建您的应用 - Error when trying to upload Xcode project: Please update Xcode and rebuild your app 尝试更新Xcode时出现错误,因为Appstore中“此Apple ID无法使用更新” - While trying to update the Xcode I am getting the error as “update is not available for this Apple ID” in Appstore Xcode 8.1 在尝试启动应用程序时卡住 - Xcode 8.1 stuck while trying to launch the app 尝试使用pod clean命令更新Xcode中的pod文件时遇到错误? - Getting error while trying to update pod file in my Xcode by using pod clean command? 尝试存档Xcode项目时出错 - Error while trying to Archive an Xcode project 错误:嵌入式二进制文件未使用与父应用程序相同的证书进行签名。 Xcode - error: Embedded binary is not signed with the same certificate as the parent app. Xcode
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM