Skip to content

Commit b6eb08b

Browse files
committed
Add simulator check for completeness
1 parent 3909380 commit b6eb08b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Loop/Managers/AppExpirationAlerter.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ class AppExpirationAlerter {
122122
}
123123

124124
static func isTestFlightBuild() -> Bool {
125+
// If the target environment is a simulator, then
126+
// this is not a TestFlight distribution. Return false.
127+
#if targetEnvironment(simulator)
128+
return false
129+
#endif
130+
125131
// If an "embedded.mobileprovision" is present in the main bundle, then
126132
// this is an Xcode, Ad-Hoc, or Enterprise distribution. Return false.
127133
if Bundle.main.url(forResource: "embedded", withExtension: "mobileprovision") != nil {

0 commit comments

Comments
 (0)