xcode-attempted-to-locate-or-generat

Xcode attempted to locate or generate…

问题描述

今天发布 ipa时出现如下提示,一开始以为xcode-beta 版造成的呢,今天刚装的,于是乎用了xcode7.2.1 同意出现如下提示:

Failed to locate or generate matching signing assets

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.

原因是->苹果全球开发者关系证书颁发机构证书的过期版本(2016年2月14日过期)- Apple World Wide Developer Relations Certificate Authority的过期时间是2016年2月14。

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.

更新证书的链接:AppleWWDRCA.cer https://developer.apple.com/certificationauthority/AppleWWDRCA.cer

重新下载证书安装即可;安装前需要把就的证书删除,不过旧的证书我没删除直接安装新的也可以的;

1、打开keychain(钥匙串),在登录和系统中找到过期的 Apple World Wide Developer Relation Certification Authority,然后删除它
注意在keychain显示菜单下,设置成显示过期证书