Signals sent from a debug version of the app have their isTestflight value set to true. I think this value should be false. Ideally an isDebug value would also be present.
Within my personal iOS project I use this code to identify between Debug/TestFlight/AppStore for various other checks. Maybe it will be helpful for this?
public extension Bundle {
enum DistributionSource {
case debug, testFlight, appStore
public var displayableTitle: String {
switch self {
case .debug: return "Debug"
case .testFlight: return "TestFlight"
case .appStore: return "App Store"
}
}
}
static var distributionSource: DistributionSource {
#if DEBUG
return .debug
#else
let isTestFlight = main.appStoreReceiptURL?.lastPathComponent == "sandboxReceipt"
return isTestFlight ? .testFlight : .appStore
#endif
}
}
Signals sent from a debug version of the app have their
isTestflight
value set totrue
. I think this value should be false. Ideally anisDebug
value would also be present.Setup configuration allowing debug signals:
Signal Values:
Within my personal iOS project I use this code to identify between Debug/TestFlight/AppStore for various other checks. Maybe it will be helpful for this?