2
2

More than 1 year has passed since last update.

[Xcode/iOS] 実機ビルドでエラーになる unable to build chain to self-signed root for signer "..."

Posted at

エミュレータではビルドできるけど、実機ビルドしたらエラーになった場合は、証明書を疑いましょう。

今回はエラーログに

unable to build chain to self-signed root for signer "..."

Screen_Shot_2021-12-29_at_12_50_32.png

というのを見つけたので、Keychain Accessを開いてみると、 certificate is not trusted というのを発見。
いつのタイミングでこうなっていたかは不明。

Screen_Shot_2021-12-29_at_12_51_00.png

Xcodeの Manage Certificates... を開いても Untitledになっていて、なんか怪しい。

Screen_Shot_2021-12-29_at_12_52_28.png

Apple Developerのサイトから該当証明書を削除します。

Screen_Shot_2021-12-29_at_12_51_16.png

Screen_Shot_2021-12-29_at_12_51_22.png

Keychain Accessに戻って、該当証明書を削除します。すると自動的に新しい証明書が作成されました。(前からこうだったけ?)

Screen_Shot_2021-12-29_at_12_53_22.png

ということで、Xcodeからも証明書が新しくなったことが確認でき、無事実機ビルドが通りました。

Screen_Shot_2021-12-29_at_12_54_03.png

2
2
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
2
2