前言:
從2月14日開始,上傳程序的同學(xué)可能會(huì)遇到提示上傳失敗的提示.
并且打開自己的鑰匙串,發(fā)現(xiàn)所有的證書全部都顯示此證書簽發(fā)者無效.
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.
原因 & 解決方法:
原因是我們之前上傳程序,都需要提前設(shè)置證書,而設(shè)置證書會(huì)涉及到從證書頒發(fā)機(jī)構(gòu)申請(qǐng)證書.
參見文章: http://blog.csdn.net/mr_lp/article/details/49784191
而失效的就是這個(gè)證書的簽發(fā)者.
這時(shí)候我們前往我們的鑰匙串,選擇上方的 顯示 --> 顯示已過期證書
就會(huì)發(fā)現(xiàn)下面多出來了一個(gè)證書.
之后選擇刪除它,前往
https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
去從新下載一個(gè)證書.
雙擊運(yùn)行后即可,然而有的同學(xué)可能添加不成功.
那是因?yàn)槟銢]有進(jìn)行證書的權(quán)限設(shè)置.
添加成功后,就可以看見之前的證書全部有效了.
后記:
對(duì)此蘋果官方的解釋:
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.
簡單點(diǎn)說就是,你頒發(fā)開發(fā)者證書的根證書失效了,因?yàn)樗麜?huì)在2016年2月14日到期.
你之前以此制作的證書才會(huì)全部失效.