更换AppleWWDRCA.cer证书
从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.
截图如下:
![](http://upload-images.jianshu.io/upload_images/225849-a15c6945d56afa36.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
原因是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看你的发布证书会是这样的:
![](http://upload-images.jianshu.io/upload_images/225849-56e7e70d3dd721cd.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
就是这个Apple World Wide Developer Relations Certificate Authority过期了,所以这个颁发的证书都不能使用了。
现在来说下解决方案:
1.打开keychain(钥匙串),在登录和系统中找到过期的 Apple World Wide Developer Relation Certification Authority,然后删除它
注意在keychain显示菜单下,设置成显示过期证书
![](http://upload-images.jianshu.io/upload_images/225849-bc2f30f815c7fc52.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
2.下载这个链接里的AppleWWDRCA.cer的证书到本地
3.记得要把系统钥匙串的设置权限打开
![](http://upload-images.jianshu.io/upload_images/225849-b3864ced4f6f7899.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
4.把AppleWWDRCA.cer安装到登录和系统中
设置成功后就可以了。查看下你的发布证书是否已经正常了。
![](http://upload-images.jianshu.io/upload_images/225849-20423199e32d9b99.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
欢迎关注我的微博:@没故事的卓同学
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步