1
2

【Xcode】ReleaseとDebugでBundleIDを分ける

Posted at

はじめに

ReleaseとDebugでBundleIDを分けることで端末に2つのアプリを共存させることができます。
Release環境とDebug環境で分けている場合、1つのアプリだと環境がごっちゃになってデータベースが壊れてしまう可能性も考えられます。

ですので、BundleIDで別アプリにして環境のごちゃごちゃを避けます

やりかた

① プロジェクトを選択します
② ターゲットを選択します
③ 「Build Settings」を選択します
スクリーンショット 2023-10-04 18.54.38.png

Product Bundle Identifierと検索します
スクリーンショット 2023-10-04 18.56.34.png

⑤ 矢印をタップして下向きに変更します
スクリーンショット 2023-10-04 18.58.17.png

⑥ DebugとReleaseに別の文字列を渡します
スクリーンショット 2023-10-04 18.59.09.png

おわり

意外と簡単でした

1
2
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
1
2