Always read local receipt in TestFlight (#826)

The condition came from v2, but the flow was different. Drop the
condition because it would always fail in TestFlight for macOS, where
sandbox and release receipts have the same URL.
This commit is contained in:
Davide 2024-11-07 11:46:41 +01:00 committed by GitHub
parent c32dcd6565
commit 142efa84d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 6 deletions

View File

@ -72,12 +72,6 @@ private extension FallbackReceiptReader {
.deletingLastPathComponent()
.appendingPathComponent("receipt")
guard releaseURL != localURL else {
#if !os(macOS) && !targetEnvironment(simulator)
assertionFailure("How can release URL be equal to Sandbox URL in TestFlight?")
#endif
return nil
}
let release = localReader(releaseURL)
return await release?.receipt()
}()