LoginSignup
4

More than 5 years have passed since last update.

Xcodeで「The identity used to sign the executable is no longer valid.」が表示されて実機でビルドできないときの対応方法

Last updated at Posted at 2015-10-28

Provisioning Profileのステータスを確認

  • iOS Member Centerにログイン > Provisioning Profile > 対象の証明書のステータスがActiveかどうかを確認する
  • Activeではなかったら、Edit > Generateで証明書を作り直す

Provisioning Profileをダウンロードする

  • Xcode > Preferences > Apple IDを選択(表示されていなかったら登録する > アカウントを選択して「View Detail」ボタンをクリック > 「Download All」ボタンをクリック

キーチェーンアクセスで無効な証明書を削除する

無効な証明書があるとビルドが失敗するので、削除します

  • キーチェーンアクセス > 自分の証明書
  • 無効になっている証明書を削除する

(無効な証明書を消しても治らなければ、有効な証明書も削除してみる)

再実行

  • Xcode > Product > Clean
  • Xcode > Product > Run

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
4