I have a public App Store app and I would like to make a version of it to be distributed as a "Custom App" that's only available in the Apple Business Manager and School Manager. This version will have a couple of different features that the public App Store app can not have.
Some features need to still be shared between the two apps so I would like to code for both apps and just change the distribution path.
I understand in Xcode our apps are identified with their Bundle Identifier, so would changing the Bundle Identifier every time I send an archive to App Store Connect allow me to choose where the app goes? Either the public App Store version or the Custom App version.
Or is there a better way to do this? I have been searching all over the internet for a week and can not find anything. Please help if you can.