您的位置:首页 > 移动开发

iOS 打包上传蒲公英和AppStore出问题

2016-02-19 11:49 513 查看
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.


从2月14号开始,上传AppStore会碰到:Failed to locate or generate matching signing assets

从2月14号开始,上传AppStore时可能会碰到这个问题:

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.

截图如下:



原因是Apple World Wide Developer Relations Certificate Authority的过期时间是2016年2月14。苹果的回答如下:

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.

简单的说就是颁发开发者证书的根证书过期了。如果这个时候你打开keychain看你的发布证书会是这样的:



就是这个Apple World Wide Developer Relations Certificate Authority过期了,所以这个颁发的证书都不能使用了。

现在来说下解决方案:

1.打开keychain(钥匙串),在登录和系统中找到过期的 Apple World Wide Developer Relation Certification Authority,然后删除它

注意在keychain显示菜单下,设置成显示过期证书



2.下载这个链接里的AppleWWDRCA.cer的证书到本地

3.记得要把系统钥匙串的设置权限打开



注意要打开锁

4.把AppleWWDRCA.cer安装到登录和系统中

设置成功后就可以了。查看下你的发布证书是否已经正常了。


http://stackoverflow.co 4000
m/questions/32821189/xcode-7-error-missing-ios-distribution-signing-identity-for

哎,每次过完节都要有一个坑给自己跳。逃不过这个魔爪。

这不,一过完春节,回来就发现公司证书出现”此证书的签发者无效”。





问题原因

经过一番查找,苹果官方给出了回答。

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.

看来是由于苹果系统的安全证书过期问题导致。




苹果早在一个多月前就提醒开发者使用新证书。开发者如果不及时更新,不仅会影响到自己的开发工作,还有可能对用户造成困扰。这一份通知面向的是那些开发应用与 Apple Wallet、Safari 推送中心又或者是 Safari 插件相关的开发者。苹果还在通知中表示,开发者需要在 2016 年 2 月 14 日结束之前更新他们的安全证书。更新之后,安全证书的下一个失效期为 2023 年 2 月。


解决办法

既然知道了原因,那么就可以对症下药了。我们通过下载苹果提供的最新的安全证书并双击安装。

然后打开钥匙串,在导航栏上,依次选择
显示
-
显示已过期的证书





选择
登录
-
所有项目


在搜索栏下输入 apple w

删除对应过期的安全证书





再一次感谢您花费时间阅读这篇文章!

今天准备打包上传AppStore,结果Xcode报以下错误:
Missing iOS Distribution signing identity for XXXXXX



查看证书后发现,Develop证书和Distribution证书都提示“此证书的签发者无效”。



什么是AppleWWDRCA证书?

搜索资料发现,原因是AppleWWDRCA (Apple Worldwide Developer Relations Certification Authority) 证书过期了。
AppleWWDRCA证书实际上就是对iOS证书(即Develop证书和Distribution证书)的授权认证,其公钥用于解密认证证书的可靠性。
iOS以及Mac OS X系统(在安装Xcode时)将自动安装AppleWWDRCA.cer(Apple Worldwide Developer Relations Certification Authority)这个中间证书(Intermediate Certificates)。

问题解决

需要更新AppleWWDRCA证书。
1.https://developer.apple.com/certificationauthority/AppleWWDRCA.cer下载最新AppleWWDRCA证书,双击安装。
2.打开钥匙串,选择登录,然后选择下面的证书。
3.选择桌面左上角的显示→显示已过期的证书。
4.这时候你会发现一个过期的“WWDR Certificate”(Apple Worldwide Developer Relations Certification Authority),删除它。
   特别注意:有的在系统那一栏也有这个过期的“WWDR Certificate”,也一并删除它,没有就不作处理。
5.再回头点击Develop证书和Distribution证书,不出意外他们都变成“此证书有效”了。

如果问题还没有解决
- 可以参考下面这两篇博客
http://www.jianshu.com/p/cda1790ea317?appinstall=0 http://superdanny.link/2016/02/15/iOS-Certificate-has-an-invalid-issuer/ http://blog.csdn.net/ioshot/article/details/50669791
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息