Bare: building in Xcode - how to specify release channels?

I have an app of which I want to create two versions of:

  1. for production users
  2. for test users (primarily on testflight)

I still want to use OTA updates for both though. At the moment I can publish to both channels - default and test.

I have tried to use turtle-cli + fastlane to build but the published apps crash instantly. The only way I’ve been able to successfully build IPAs is through Xcode.

My question: When building with Xcode, is it possible to specify the release channel?

Please note that publishing before hand doesn’t make a difference, it always goes to default channel.