From e27c5f0b87141c9400c24cd016fd6794177f77cc Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Thu, 21 Mar 2024 14:35:36 +0100 Subject: [PATCH] Ignores recommended sources permission errors for RELEASE builds --- AltStore/Operations/VerifyAppOperation.swift | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/AltStore/Operations/VerifyAppOperation.swift b/AltStore/Operations/VerifyAppOperation.swift index 8358dc7e..98adc5c4 100644 --- a/AltStore/Operations/VerifyAppOperation.swift +++ b/AltStore/Operations/VerifyAppOperation.swift @@ -338,21 +338,18 @@ private extension VerifyAppOperation } catch let error as VerificationError where error.code == .undeclaredPermissions { - #if !BETA - throw error - #endif - if let recommendedSources = UserDefaults.shared.recommendedSources, let (sourceID, sourceURL) = await $storeApp.perform({ $0.source.map { ($0.identifier, $0.sourceURL) } }) { let normalizedSourceURL = try? sourceURL.normalized() let isRecommended = recommendedSources.contains { $0.identifier == sourceID || (try? $0.sourceURL?.normalized()) == normalizedSourceURL } guard !isRecommended else { - // Don't enforce permission checking for Recommended Sources while 2.0 is in beta. + // Don't enforce permission checking for Recommended Sources for now. return localPermissions } } + throw error } return localPermissions