当前位置: > > > Swift - The certificate used to sign "XXX" has either expired...错误解决

Swift - The certificate used to sign "XXX" has either expired...错误解决

1,问题描述

最近将程序发布到真机上进行调试,点击运行后无法启动程序,报如下错误。
Unable to install "hangge_1221"
The certificate used to sign "hangge_1221" has either expired or has been revoked. An Updated certificate is required to sign and install the application.

2,问题解决

将本机相关证书更新下就可以了。
(1)点击 Xcode 菜单中的“Preferences...

(2)在弹出的窗口中选择“Accounts”->“Team”->“View Details...

(3)右击“Provisiong Profiles”列表中的任意一个 profile 文件,选择“Show in Finder” 

(4)这时可看到本地所有的 profile 文件。我们可以只把需要重新下载的证书删除,或者干脆把所有的都给删除。

(5)回到之前页面,点击“Download All Profiles”下载所有的 Provisiong Profiles

(6)下载完毕后,再次运行程序,发现现在可以成功启动程序了。
评论0