How to create distribution build with XCode

This is how you distribution a build in XCode

Open XCode and your project. Then duplicate you release configuration

Now name the distribution

Set your command-line build to the distribution name

Now navigate to your Build Settings and select the provision

Set product name

Open the info.plist and change the bundle name to bundle ID string

Rename the target application

Change product name in Build Settings tab

Documentation: https://developer.apple.com/documentation/xcode/preparing-your-app-for-distribution