iOS開發Debug之上架根證書過期問題
阿新 • • 發佈:2019-02-15
從16年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 XXX 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.
就是這個Apple World Wide Developer Relations Certificate Authority過期了,所以這個頒發的證書都不能使用了。
現在來說下解決方案:
1、開啟keychain(鑰匙串),在登入和系統中找到過期的 Apple World Wide Developer Relation Certification Authority,然後刪除它
注意在keychain顯示選單下,設定成顯示過期證書
2、下載這個連結裡的https://developer.apple.com/certificationauthority/AppleWWDRCA.cer的證書到本地
3、記得要把系統鑰匙串的設定許可權開啟