Adapting the Info.plist file

When the app is built, the compiler consults the Info.plist properties list for several pieces of information, including the one that interests us at the moment, the bundle identifier.

Navigate to the project's Info.plist file, and change the name of the Bundle identifier field from the default setting, $(PRODUCT_BUNDLE_IDENTIFIER), to $(BUNDLE_ID_SETTING), not forgetting the dollar sign and parentheses.

Now we have instructed the compiler to use whatever argument is returned from the build settings  BUNDLE_ID_SETTING value, with respect to the current build configuration.

Technically speaking, you now have two different apps as far as macOS is concerned, and they will coexist quite happily on the same machine.