ビルド環境別にアプリ表示名を変えると、開発用のビルドか、本番用のビルドかがわかりやすくなるので便利です。
今回はその設定方法をご説明します。
アプリ名に接頭語をつける
Build Settingsの+ボタンをタップし、Add User-Defined Settingを選択
![](https://freelance-style.net/wp-content/uploads/2022/01/スクリーンショット-2022-01-30-21.08.19.png)
新規でDISPLAY_NAME_PREFIXという項目を追加し、Debugの方に「【開発】」と入力
![](https://freelance-style.net/wp-content/uploads/2022/01/スクリーンショット-2022-01-30-21.13.20.png)
Build SettingsのPackagingでProduct Nameの先頭に先ほど作成したDISPLAY_NAME_PREFIXを設定
![](https://freelance-style.net/wp-content/uploads/2022/01/スクリーンショット-2022-01-30-21.16.08.png)
![](https://www18.a8.net/0.gif?a8mat=3N1T0Z+G5OISY+50+2HLQJL)
結果
Releaseビルド時
![](https://freelance-style.net/wp-content/uploads/2022/01/Simulator-Screen-Shot-iPhone-8-2022-01-30-at-21.19.04.png)
Debugビルド時
![](https://freelance-style.net/wp-content/uploads/2022/01/Simulator-Screen-Shot-iPhone-8-2022-01-30-at-21.18.12.png)