Remove app groups that contain AltStore

This commit is contained in:
naturecodevoid
2023-04-01 20:03:15 -07:00
parent b1ed413c4f
commit 2ce639e750

View File

@@ -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.