問(wèn)題描述
今天準(zhǔn)備打包上傳AppStore,結(jié)果Xcode報(bào)以下錯(cuò)誤:
Missing iOS Distribution signing identity for XXXXXX

查看證書(shū)后發(fā)現(xiàn),Develop證書(shū)和Distribution證書(shū)都提示“此證書(shū)的簽發(fā)者無(wú)效”。

什么是AppleWWDRCA證書(shū)?
搜索資料發(fā)現(xiàn),原因是AppleWWDRCA (Apple Worldwide Developer Relations Certification Authority) 證書(shū)過(guò)期了。AppleWWDRCA證書(shū)實(shí)際上就是對(duì)iOS證書(shū)(即Develop證書(shū)和Distribution證書(shū))的授權(quán)認(rèn)證,其公鑰用于解密認(rèn)證證書(shū)的可靠性。iOS以及Mac OS X系統(tǒng)(在安裝Xcode時(shí))將自動(dòng)安裝AppleWWDRCA.cer(Apple Worldwide Developer Relations Certification Authority)這個(gè)中間證書(shū)(Intermediate Certificates)。
問(wèn)題解決
需要更新AppleWWDRCA證書(shū)。
1.https://developer.apple.com/certificationauthority/AppleWWDRCA.cer下載最新AppleWWDRCA證書(shū),雙擊安裝。
2.打開(kāi)鑰匙串,選擇登錄,然后選擇下面的證書(shū)。
3.選擇桌面左上角的顯示→顯示已過(guò)期的證書(shū)。
4.這時(shí)候你會(huì)發(fā)現(xiàn)一個(gè)過(guò)期的“WWDR Certificate”(Apple Worldwide Developer Relations Certification Authority),刪除它。 特別注意:有的在系統(tǒng)那一欄也有這個(gè)過(guò)期的“WWDR Certificate”,也一并刪除它,沒(méi)有就不作處理。5.再回頭點(diǎn)擊Develop證書(shū)和Distribution證書(shū),不出意外他們都變成“此證書(shū)有效”了。