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?

Unity DevOps Build Automation + Build Profiles、AndroidのApplication IDはBuild Automation側の設定が優先される

Posted at

2025年前半に、Unity DevOps Build Automation(以下、Build Automation)は、Build Profilesに対応しました。

そんな「Build Automation + Build Profiles」の小ネタ。

2025年5月4日の時点では、「Build Automation」と「Build Profiles」両方でAndroidのApplication ID(Package Nameとも呼ばれる)で指定した場合、Build Automation側の設定が優先されるようです。


Build Automationでは、targetごとにApplication IDを上書きできます。

  1. Build Automationの対象プロジェクトをブラウザで開く
  2. Configurationsを選択
  3. 変更したいtargetを選んで鉛筆アイコンをクリック
  4. Basic Settingsタブを開く
  5. Credentialssセクション中、Bundle IDに「Application IDとして設定・上書きしたい文字列」を入力

のような手順で、Application IDを上書きできます。

スクリーンショット 2025-05-04 21.58.43.png


Build Profilesも、Application IDをProfileごとに上書きすることができます。

Unityプロジェクト中、対象のBuild Profilesのインスペクターで、Player SettingsのOverridesを開きます。

スクリーンショット 2025-05-04 21.20.26.png

Identificationセクションの「Override Default Package Name」にチェックを入れ、Package Nameのエディットテキストに上書きしたい文字列で指定します。

スクリーンショット 2025-05-04 21.22.20.png


このように、「Build Automation」と「Build Profiles」両方でAndroidのApplication ID(Package Nameとも呼ばれる)を指定できます。もし異なる文字列でそれぞれApplication IDを指定した場合、Build Automation側の設定が優先されるようです。(2025年5月4日時点)


今の「Build Automationが優先される仕様」だと、「あれ、Build Profileで設定したApplication IDにならない!?」という事故が発生しそうですね。

個人的には、Build AutomationでBuild Profilesを使っている場合は、

  • Build Automation側で、AndroidのApplication ID指定・上書きできない
  • 該当のエディットテキストがdisabledになる
  • Application IDは、Build Profiles側で指定したものになる

という仕様だと嬉しいなと思っています。


ちなみに、「Scenes Path」はBuild AutomationでBuild Profilesを使っている状態だと

This filed is disabled because a Build Profile path has been specified.

という注意書きが出て、Build Automation側で「Scenes Path」を指定することはできません。

スクリーンショット 2025-05-04 22.12.30.png

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?