問題: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(在該工程的Provisioning profile處右擊)
Select all provisionaling list from the folder and move it to trash(刪除所有provisionaling list)
Download All provisioning profiles by clicking Download All below Provisioning Profile lists.(點擊左下角Download All provisioning profiles)
Now, Run again and it should Work!

轉載自http://www.cnblogs.com/zzugyl/p/5555695.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章