From 7cfcab312c37ee81558061143db4b65c5d31a5c8 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Mon, 1 Feb 2021 16:53:51 -0600 Subject: [PATCH] =?UTF-8?q?Fixes=20=E2=80=9CApp=20Group=20does=20not=20exi?= =?UTF-8?q?st=E2=80=9D=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FetchProvisioningProfilesOperation.swift | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/AltStore/Operations/FetchProvisioningProfilesOperation.swift b/AltStore/Operations/FetchProvisioningProfilesOperation.swift index 98e79921..2a342dd3 100644 --- a/AltStore/Operations/FetchProvisioningProfilesOperation.swift +++ b/AltStore/Operations/FetchProvisioningProfilesOperation.swift @@ -365,16 +365,10 @@ extension FetchProvisioningProfilesOperation entitlements[key] = value } - var applicationGroups = entitlements[.appGroups] as? [String] ?? [] - if applicationGroups.isEmpty - { - guard let isAppGroupsEnabled = appID.features[.appGroups] as? Bool, isAppGroupsEnabled else { - // No app groups, and we also haven't enabled the feature, so don't continue. - // For apps with no app groups but have had the feature enabled already - // we'll continue and assign the app ID to an empty array - // in case we need to explicitly remove them. - return completionHandler(.success(appID)) - } + guard var applicationGroups = entitlements[.appGroups] as? [String], !applicationGroups.isEmpty else { + // Assigning an App ID to an empty app group array fails, + // so just do nothing if there are no app groups. + return completionHandler(.success(appID)) } if app.isAltStoreApp