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!

發佈了55 篇原創文章 · 獲贊 10 · 訪問量 12萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章