之前我的App在進(jìn)行真機(jī)運(yùn)行的時(shí)候出現(xiàn)了個(gè)錯(cuò)誤,在這里貼出來,做個(gè)筆記,也希望跟大家分享一下解決辦法。
錯(cuò)誤提示:
The certificate used to sign "AppName" has either expired or has been revoked
在Xcode真機(jī)調(diào)試開發(fā)過程中,無論是使用個(gè)人證書或者是企業(yè)證書,經(jīng)常會(huì)遇到這樣的問題:
The certificate used to sign "XXX" has either expired or has been revoked. An
updated certificate is required to sign and install the application.```
剛開始在key里刪除證書,在Xcode中fix一下,好像問題也不大。
但是最近頻發(fā)發(fā)生這樣的事情,有時(shí)候需要耗費(fèi)很久才能在搞定。
后來在stack overflow找到一個(gè)帖子,是這樣解決的:
http://stackoverflow.com/questions/36689116/certificate-has-either-expired-or-has-been-revoked
clean 一下: Shift(?)+Command(?)+K or Select Product > Clean
然后 Xcode Menu> Preference
選擇 Account > Team > View Details
選擇一個(gè) Provisioning Profile
右鍵 > Select Show in Finder.
然后把配置文件全部刪除
然后再重新Download所有的Provisioning Profile
現(xiàn)在在重新運(yùn)行應(yīng)該就可以了,前提是你在開發(fā)者中心的網(wǎng)站上把證書和配置文件全都設(shè)置正確。