1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Warning: unable to build chain to self-signed root for signer "iPhone Developer: XXXXXX (XXXXX)" の対処方法

Last updated at Posted at 2021-12-17

はじめに

Xcode でビルドする際に以下のようなエラーが出るシチュエーションがありました。

Warning: unable to build chain to self-signed root for signer "iPhone Developer: XXXXXX (XXXXX)"

新しいビルドマシンを用意したときに出やすかったので原因を書き留めておこうかと思います。

原因

Xcode で署名する際に必要な証明書が足りていない。

具体的には Apple Worldwide Developer Relations Certification Authority (WWDR Certificate) は中間証明書というものがキーチェインアクセスにインポートされていない。

Xcode の「Preference > Accounts」から Apple Developer にリンクした場合に必要な証明書がインストールされるんじゃないかと思いますが、リンクしない端末ではその証明書がインストールされずにという状況で発生しているのではないかと思います。(詳しくは調べていないですが、少なくとも上記の中間証明書がインストールされていなかった)

対処方法

WWDR Certificate ダウンロードリンクからWWDRCAWWDRCAG3をインストールする。

これだけです。

まとめ

チーム制作の場合、証明書などは共有して Xcode からは Apple に接続することがなかったりするので、意外と見落としがちな部分かと思います。

色々なサイトで同じエラーが出ている方をチラホラ見かけ、証明書の作り直しや Xcode の再インストールや再起動など様々な解決方法が挙がっていましたが、私の環境ではこれで直りました。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?