The certificate used to sign "XXX" has either expired or has been revoked


在Xcode真機調試開發過程中,無論是使用個人證書或者是企業證書,經常會遇到這樣的問題:
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一下,好像問題也不大。
但是最近頻發發生這樣的事情,有時候需要耗費很久才能在搞定。
后來在stack overflow找到一個帖子,是這樣解決的:
http://stackoverflow.com/questions/36689116/certificate-has-either-expired-or-has-been-revoked


First of all clean the project by holding Shift(⇧)+Command(⌘)+K or Select Product > Clean
Then
Go to XCode Menu> Preference
Select Account > Team > View Details
Select any Provisioning profile from Provisioning Profiles list
Right click > Select Show in Finder. Then you will see all lists of provisioning profiles
Select all provisionaling list from the folder and move it to trash
Download All provisioning profiles by clicking Download All below Provisioning Profile lists.
Now, Run again and it should Work!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM