0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

exportArchive Provisioning profile "xxxxx" doesn't include signing certificate "Apple Distribution: xxxx".

Last updated at Posted at 2025-06-24

備忘録

flutter build 時にこけた話

以下のようなエラーが出たときに沼ったため残しておく

exportArchive Provisioning profile "xxxxx" doesn't include signing certificate "Apple Distribution: xxxx".

原因?

  • 指定されたプロビジョニングプロファイルが、使おうとしている署名証明書(Apple Distribution)を含んでいないために xcodebuild -exportArchive で失敗している

対処法

  1. Apple Developer ポータル にログイン
  2. 対象のプロビジョニングプロファイル("xxxx") を探す
  3. 対象アプリIDに対して、使用中の「Apple Distribution: xxxx」証明書が含まれているか確認
  4. 含まれていない場合は
    • プロファイルを編集 → 使用中の証明書にチェックを入れて再生成
    • または削除して新規作成
  5. 更新完了後、Xcodeを開き、使用しているApple Distributionを最新のものにする

おまけ1

以下のようなエラーにも遭遇したので追記しておく

error: exportArchive No signing certificate "iOS Distribution" found
  • 対処法
    • XCodeにて、メニュー > [XCode] > [Setting] > [Accounts]Apple IDがログアウトしていたらログインする
    • ログイン状態なら、一度削除して、追加する(-を押して削除して、+を押して追加する)

おまけ2

exportArchive No "iOS Ad Hoc" profiles for team 'xxx' matching 'xxx' are installed.
  • 原因?

    • xcodebuild -exportArchive の際に指定された provisioningProfiles の中で、"xxx" という Ad Hoc プロビジョニングプロファイルがローカルに存在しないため
  • 対処法

    • exportOptions.plist に設定が記載されているが、以下の箇所が対象のプロファイルと同じ名称になっていることを確認する
    • 異なっていれば、修正し、一致するようにする
    <key>provisioningProfiles</key>
    <dict>
    	<key>{対象のアプリ名}</key>
    	<string>{プロファイル名}</string>
    </dict>
    
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?