From 2ce639e7508bee0f85ce34cfebb27076d4236939 Mon Sep 17 00:00:00 2001 From: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sat, 1 Apr 2023 20:03:15 -0700 Subject: [PATCH] Remove app groups that contain AltStore --- .../Operations/FetchProvisioningProfilesOperation.swift | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/AltStore/Operations/FetchProvisioningProfilesOperation.swift b/AltStore/Operations/FetchProvisioningProfilesOperation.swift index 74bdeb3b..1b2de2f2 100644 --- a/AltStore/Operations/FetchProvisioningProfilesOperation.swift +++ b/AltStore/Operations/FetchProvisioningProfilesOperation.swift @@ -382,8 +382,17 @@ extension FetchProvisioningProfilesOperation return completionHandler(.success(appID)) } + print("Application groups before app.isAltStoreApp: \(applicationGroups)") if app.isAltStoreApp { + // Remove app groups that contain AltStore since they can be problematic (cause SideStore to expire early) + for (index, group) in applicationGroups.enumerated() { + if group.contains("AltStore") { + print("Removing application group: \(group)") + applicationGroups.remove(at: index) + } + } + // Potentially updating app groups for this specific AltStore. // Find the (unique) AltStore app group, then replace it // with the correct "base" app group ID.