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

How to create distribution build with XCode

Now name the distribution

How to create distribution build with XCode

Set your command-line build to the distribution name

How to create distribution build with XCode

Now navigate to your Build Settings and select the provision

How to create distribution build with XCode

Set product name

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

How to create distribution build with XCode

Rename the target application

Change product name in Build Settings tab

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