Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
デフォルトでは、SPM は、そのmain.swift. 別のファイル名でバイナリをビルドするにはどうすればよいですか? SPMのマニュアルに説明がありません。
main.swift
私は別のビルド システムを使用することに賛成です。たとえばmake、 の上にswift build. 現在、swift buildカスタムの「フック」を定義して、さまざまなビルド自動化タスク (コードの生成、リソースのコピー、実行可能ファイルのデプロイなど) を実装することはできません。一度使用makeすると、特にバイナリの名前を変更するなど、必要なタスクを定義できます。
make
swift build