'How to use Swift flags to detect a TestFlight build

I'm trying to branch my code depending on whether the app build is a debug, release, TestFlight, or App Store one. There are 4 different options for specifying Swift compiler flags:

  • Appstore Release
  • Debug
  • Enterprise Release
  • Release.

Which of these four options corresponds to TestFlight builds?

Other Swift Flags



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source