I'm in the middle of transitioning from TestFlight's native app to Apple's TestFlight through iTunes Connect. My Xcode Project is set up with a beta scheme and a distribution scheme, so I can include a number of debug features in the beta version using a custom flag (lots of #ifndef PROD
in the debug code). The beta scheme also has a separate bundle identifier and bundle display name, so that beta and distribution can live side by side on a tester's phone (separate icons, etc).
With Apple's TestFlight, the bundle ID needs to be the same for beta and for distribution. Because of that, I can't include any of the debug features in my current arrangement.
I'm looking for a way around this. One possibility I thought of was to create another app in iTunes Connect solely for testing, but that seems dirty. Is there a conditional or a way to test, in the code, whether the current build is a TestFlight build or a distribution build? Or is there a better way to handle this?
Thanks in advance!