事象
まず最初にmethodをad-hocとしたplistファイルを作成し、Enterprise ProgramではないProvisioningを使用して動作を確認した。
これを流用してEnterprise ProgramのProvisioningでipaを作成しようとしたところ以下のエラーが表示された。
No matching provisioning profiles found
teamIDの指定やプロジェクト設定など確認するもエラーは解消されず。
解決策
plistファイルのmethodをad-hocからenterpriseに変更するのみ。
$ xcodebuild -help を見ると確かに以下のように記載されていた。
method : String
Describes how Xcode should export the archive. Available options: app-store, package, ad-hoc, enterprise, development, and developer-id. The list of options varies based on the type of archive. Defaults to development.
終わりに
エラーの出方から問題の箇所が特定しづらいなと思いつつ、ヘルプはよく読みましょう…という初歩的なところに行き着く。