From dc29b65bd58e88854678d3199f805083f2760221 Mon Sep 17 00:00:00 2001 From: mahee96 <47920326+mahee96@users.noreply.github.com> Date: Thu, 13 Mar 2025 03:45:21 +0530 Subject: [PATCH] - fix: attempt to fix "app no longer available" issues due to fetch profiles not updating appFeatures and appGroups (possible regression from PR#846) --- .../FetchProvisioningProfilesOperation.swift | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/AltStore/Operations/FetchProvisioningProfilesOperation.swift b/AltStore/Operations/FetchProvisioningProfilesOperation.swift index 0690b2f3..e8838a29 100644 --- a/AltStore/Operations/FetchProvisioningProfilesOperation.swift +++ b/AltStore/Operations/FetchProvisioningProfilesOperation.swift @@ -360,13 +360,6 @@ extension FetchProvisioningProfilesOperation } } -class FetchProvisioningProfilesRefreshOperation: FetchProvisioningProfilesOperation, @unchecked Sendable { - override init(context: AppOperationContext) - { - super.init(context: context) - } -} - class FetchProvisioningProfilesInstallOperation: FetchProvisioningProfilesOperation, @unchecked Sendable{ override init(context: AppOperationContext) { @@ -613,3 +606,14 @@ class FetchProvisioningProfilesInstallOperation: FetchProvisioningProfilesOperat } } } + +// : users were reporting that refresh (though seemed like it refreshed the app becomes no longer available) +// possibly, this is caused since refesh was not updating appFeatures and AppGroups in the new profile? not sure. +// for now we are reverting by keeping same operation that happens during fetch in install path to see if it fixes issue #893 +// class FetchProvisioningProfilesRefreshOperation: FetchProvisioningProfilesOperation, @unchecked Sendable { +class FetchProvisioningProfilesRefreshOperation: FetchProvisioningProfilesInstallOperation, @unchecked Sendable { + override init(context: AppOperationContext) + { + super.init(context: context) + } +}