LoginSignup
10
9

More than 5 years have passed since last update.

XcodeのCodeSiningエラー( The identity used to sign the executable is no longer valid ) 鍵の期限切れ

Posted at

Xcodeで、ある日から、ビルドが成功しない。エラーが出る。

昨日(この前)までできていたのに。。。

エラー内容:
Code Sining Error

The identity used to sign the executable is no longer valid
Please verify that your device's clock is properly set,
and that your signing certificate is not expired.

というエラー。

PROJECTのCode Signing Identity と Provisioning Profile
および
TARGETSのCode Signing Identity と Provisioning Profile
は、正しく設定している。

有効期限が切れていたようなので、
新しいキーを取得して、
それをPCにインストールする。

でもなぜか、それがXcode上であたってないようだ。。

Clean して、昔の古いキーを削除して、再度Buildしても、エラー。

そんなとき、以下の方法でエラーを解決できました。

Xcode上の上部、Xcode > Preferences の Accounts タブ

左下の+ボタンをおして、
Apple ID を登録して、ビルドしたら、なんと Success!!!

10
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
9