上传存档错误:“缺少 iOS 分发签名标识...”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/35397453/
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-08-31 08:30:09  来源:igfitidea点击:

Uploading archive error: "Missing iOS Distribution signing identity for ..."

iosxcodeprovisioningsigning

提问by JYeh

I'm trying to upload my iOS app archive to iTunes Connect using Xcode, but when I click "Upload to App Store" I get the error:

我正在尝试使用 Xcode 将我的 iOS 应用程序存档上传到 iTunes Connect,但是当我单击“上传到 App Store”时出现错误:

Xcode attempted to locate or generate matching signing assets and failed to do so because of the following issues. Missing iOS Distribution signing identity for _____. Xcode can request one for you.

Xcode 尝试定位或生成匹配的签名资产,但由于以下问题而失败。缺少 _____ 的 iOS 分发签名标识。Xcode 可以为您索取一份。

I'm really confused, because I had just successfully uploaded an archive for the same app about 2 hours earlier, and then I needed to make one simple fix and then needed to reupload the archive, and now I'm getting this error. I did not touch anything else.

我真的很困惑,因为我刚刚在大约 2 小时前成功上传了同一个应用程序的档案,然后我需要做一个简单的修复,然后需要重新上传档案,现在我收到了这个错误。我没有碰其他任何东西。

I've done everything that I can think of to try fixing the problem, I restarted Xcode, my computer, went to Xcode preferences to click 'Download All' on the provisioning profiles, clicked "Reset" on the iOS Distribution on the same page, downloaded again the iOS distribution profile from the member center, went to the code signing settings in my app's build settings and manually set the release signing identity to the iOS distribution profile, and rearchived several times.

我已经做了所有我能想到的尝试解决问题的方法,我重新启动了 Xcode,我的计算机,转到 Xcode 首选项以单击配置文件上的“全部下载”,单击同一页面上 iOS 分发版上的“重置” ,再次从会员中心下载iOS分发配置文件,到我的app的构建设置中的代码签名设置,手动设置发布签名标识到iOS分发配置文件,重新归档了几次。

Update: Turns out it's due to the WWDRCA expiring today: https://developer.apple.com/support/certificates/expiration/There are a lot of other people experiencing the same issue. I was able to temporarily bypass the issue by changing the date on my computer back 1 day.

更新:原来是因为 WWDRCA 今天到期:https: //developer.apple.com/support/certificates/expiration/还有很多其他人遇到同样的问题。通过将计算机上的日期更改回 1 天,我能够暂时绕过该问题。

回答by JYeh

The issue is because the Apple WWDRCA expired today (Feb 14, 2016): https://developer.apple.com/support/certificates/expiration/

问题是因为 Apple WWDRCA 今天(2016 年 2 月 14 日)到期:https: //developer.apple.com/support/certificates/expiration/

Open Keychain Access, and in the menu, click View-> Show Expired Certificates. Then, delete the expired Apple Worldwide Developer Relations Certificate Authorityfrom both the loginand SystemKeychains. Install the renewed certificate from Apple by downloading from https://developer.apple.com/certificationauthority/AppleWWDRCA.cerand then opening it.

打开Keychain Access,然后在菜单中单击View-> Show Expired Certificates。然后,从登录系统钥匙串中删除过期的Apple Worldwide Developer Relations 证书颁发机构。通过从https://developer.apple.com/certificationauthority/AppleWWDRCA.cer下载并打开它,从 Apple 安装更新的证书。

Also, you might need to restart Xcode to reflect the changes. Then, clean and build your project then re-try generating your archive.

此外,您可能需要重新启动 Xcode 以反映更改。然后,清理并构建您的项目,然后重新尝试生成您的存档。

Your keychain should show like that

你的钥匙串应该是这样的

回答by Siba Prasad Hota

Here's statement from Apple.

这是苹果的声明。

Thanks for bringing this to the attention of the community and apologies for the issues you've been having. This issue stems from having a copy of the expired WWDR Intermediate certificate in both your System and Login keychains. To resolve the issue, you should first download and install the new WWDR intermediate certificate (by double-clicking on the file). Next, in the Keychain Access application, select the System keychain. Make sure to select “Show Expired Certificates” in the View menu and then delete the expired version of the Apple Worldwide Developer Relations Certificate Authority Intermediate certificate (expired on February 14, 2016). Your certificates should now appear as valid in Keychain Access and be available to Xcode for submissions to the App Store.

感谢您将此问题提请社区注意,并对您遇到的问题表示歉意。此问题源于在您的系统和登录钥匙串中都有过期的 WWDR 中间证书的副本。要解决此问题,您应该首先下载并安装新的 WWDR 中间证书(通过双击该文件)。接下来,在 Keychain Access 应用程序中,选择 System keychain。确保在“查看”菜单中选择“显示过期证书”,然后删除过期版本的 Apple Worldwide Developer Relations Certificate Authority Intermediate 证书(2016 年 2 月 14 日过期)。您的证书现在应该在 Keychain Access 中显示为有效,并且可供 Xcode 提交到 App Store。

https://forums.developer.apple.com/thread/37208

https://forums.developer.apple.com/thread/37208

  1. Download https://developer.apple.com/certificationauthority/AppleWWDRCA.cerand double-click to install to Keychain.
  2. Select "View" -> "Show Expired Certificates"in Keychainapp.
  3. DeleteApple Worldwide Developer Relations Certificate Authority certificates from "login"tab and "System"tab in Keychain app.
  1. 下载https://developer.apple.com/certificationauthority/AppleWWDRCA.cer并双击安装到Keychain
  2. 钥匙串应用程序中选择“查看”->“显示过期证书”
  3. 从Keychain 应用程序的“登录”选项卡和“系统”选项卡中删除Apple Worldwide Developer Relations 证书颁发机构证书。

Edited by :Jeremy MolayemEnsure the new downloaded cert is in both login and systemDefault to only system tab will still give error.**

Edited by :Jeremy Molayem确保新下载的证书在登录名和系统中默认为仅系统选项卡仍会出错。**

回答by Sreeraj VR

  1. Download https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
  2. Double-click to install it in your Keychain.
  3. Then from Keychain, Select View -> "Show Expired Certificates" in Keychain app.
  4. It will list all the expired certificates.
  5. Delete "Apple Worldwide Developer Relations Certificate Authority certificates" from "login" tab
  6. And also delete it from "System" tab.
  7. Restart your Mac
  1. 下载https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
  2. 双击以将其安装在您的钥匙串中。
  3. 然后从钥匙串中,在钥匙串应用程序中选择“查看”->“显示过期证书”。
  4. 它将列出所有过期的证书。
  5. 从“登录”选项卡中删除“Apple Worldwide Developer Relations 证书颁发机构证书”
  6. 并从“系统”选项卡中删除它。
  7. 重新启动您的 Mac

Now your system is ready to upload the App

现在您的系统已准备好上传应用程序

回答by BobsApps

This answer below is the only one that works. Please mark it as the solution

下面的这个答案是唯一有效的答案。请将其标记为解决方案

The issue is because the Apple WWDRCA expired today (Feb 14, 2016): https://developer.apple.com/support/certificates/expiration/

问题是因为 Apple WWDRCA 今天(2016 年 2 月 14 日)到期:https: //developer.apple.com/support/certificates/expiration/

Open Keychain Access, and in the menu, click View -> Show Expired Certificates. Then, delete the expired Apple Worldwide Developer Relations Certificate Authority from both the login and System Keychains. Install the renewed certificate from Apple by downloading from https://developer.apple.com/certificationauthority/AppleWWDRCA.cerand then opening it.

打开 Keychain Access,然后在菜单中单击查看 -> 显示过期证书。然后,从登录和系统钥匙串中删除过期的 Apple Worldwide Developer Relations 证书颁发机构。通过从https://developer.apple.com/certificationauthority/AppleWWDRCA.cer下载并打开它,从 Apple 安装更新的证书。

回答by Roel Koops

I had the same problem and was able to fix it by installing this "Apple World Wide Developer Relations Certificate Authority" certificate in my keychain: link

我遇到了同样的问题,并且能够通过在我的钥匙串中安装这个“Apple 全球开发者关系证书颁发机构”证书来解决它:链接

回答by El_boogy

As odd as it may seem, setting the computer's date back one day works.

尽管看起来很奇怪,但将计算机的日期设置回一天是可行的。

回答by Trianna Brannon

I was having this exact same problem and I tried literally everything, I deleted expired certificates on keychain, downloaded the new WWDRCA as others have posted a link to. Edited and re-download my provisioning profile. and then quit xcode opened it back up and cleaned but nothing worked. The only thing that did work for me was changing the date on my Mac to Jan 1st 2016 and it uploaded perfectly! This obviously isn't a permanent fix but I'm on a deadline and it needed to get uploaded asap so hopefully this helps someone in a similar situation.

我遇到了完全相同的问题,我几乎尝试了所有方法,我删除了钥匙串上过期的证书,下载了新的 WWDRCA,因为其他人已经发布了链接。编辑并重新下载我的配置文件。然后退出 xcode 将其重新打开并清理,但没有任何效果。唯一对我有用的是将我的 Mac 上的日期更改为 2016 年 1 月 1 日,并且上传完美!这显然不是永久性修复,但我正处于截止日期,需要尽快上传,所以希望这可以帮助处于类似情况的人。

回答by hossein hatami

If you have renewed your account developer, go to Provisioning Profilessite and renew in developer profile.

如果您已续订您的帐户开发人员,请转到配置配置文件站点并在开发人员配置文件中续订。

回答by user1210182

I faced the same issue and the only thing that worked for me was setting the computer's date backwards as suggested by other responders, I tried downloading the "Apple World Wide Developer Relations Certificate Authority" but no luck.

我遇到了同样的问题,唯一对我有用的是按照其他响应者的建议将计算机的日期向后设置,我尝试下载“Apple World Wide Developer Relations Certificate Authority”,但没有成功。