From 142efa84d072404476d29dde3e54630e0ab9ce3e Mon Sep 17 00:00:00 2001 From: Davide Date: Thu, 7 Nov 2024 11:46:41 +0100 Subject: [PATCH] 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. --- .../Sources/CommonLibrary/IAP/FallbackReceiptReader.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Passepartout/Library/Sources/CommonLibrary/IAP/FallbackReceiptReader.swift b/Passepartout/Library/Sources/CommonLibrary/IAP/FallbackReceiptReader.swift index 780d2689..03517256 100644 --- a/Passepartout/Library/Sources/CommonLibrary/IAP/FallbackReceiptReader.swift +++ b/Passepartout/Library/Sources/CommonLibrary/IAP/FallbackReceiptReader.swift @@ -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() }()