app无法上传,Failed to locate or generate matching signing assets,Missing or invalid signature 处理

来源:互联网 发布:linux dhcp配置步骤 编辑:程序博客网 时间:2024/05/22 13:57

今年过年回来,上传一个APP到store,却怎么也不行,报错如下:


看到这里,觉得是不是证书不匹配,导致的问题,那打开钥匙串,找到证书,发现:


按照一贯的解题思路,找baidu,谷歌,stackflow,终于找到原因:

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

原来从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 newWWDR 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.打开钥匙串,在登录和系统中找到过期的 Apple World Wide Developer Relation Certification Authority,然后删除;

2.下载官方AppleWWDRCA.cer(点击下载)的证书到本地(https://developer.apple.com/certificationauthority/AppleWWDRCA.cer)

3.双击下载的证书,会安装此登录中;

4.点击钥匙串左侧证书类型为“系统”,将证书再拖到系统证书列表中,按提示输入电脑管理员密码;

问题到此解决。



0 0
原创粉丝点击