Xcode真机调试失败:The identity used to sign the executable is no longer valid

时间:2023-03-09 04:32:19
Xcode真机调试失败:The identity used to sign the executable is no longer valid

在Xcode中突然好久没有使用真机调试了。今天使用真机的时候。出现例如以下的警告。并真机执行失败:

The identity used to sign the executable is no longer valid.

Please verify that your device's clock is proprtly set,and that your signing certificate is not expired.(0xE8008018).

Xcode真机调试失败:The identity used to sign the executable is no longer valid.

事实上这个问题非常easy,Xcode是告诉你的身份认证已经失效了,须要你又一次进行签名认证。解决方式也非常easy:

选择Xcode->Preferences->Accounts,旁边应该就有一个红色的感叹号。Xcode提示你须要又一次输入Apple ID和password。你又一次输入验证就可以。然后就能够真机调试了。