どういうことか
多分あなたはFirebase Dynamic Linkの実装をするとかで Associated Domains
あたりの設定を変更したらこんなエラーが出てビルドできなくなったのでは?
error: exportArchive: Provisioning profile “App Name” doesn’t support the Associated Domains capability.
error: exportArchive: Provisioning profile “App Name” doesn’t include the com.apple.developer.associated-domains entitlement.
新しくProvisioning Profile(署名)をダウンロードして更新してあげたら直る。
手順
Apple DeveloperのProfilesの一覧の右端が Download という表記ではなく Invalid になっていて署名がダウンロードできなくなっている。
選択して Edit を押し、特に何もいじらなくていいので Save するとダウンロードできるようになった。あとは署名をダブルクリックしてXcodeに登録するだけ。
【iOS】プロビジョニングプロファイル更新手順
https://qiita.com/Labi/items/d93624e4f6ec7d073e76