From 3dd0735305e281b6920a120d8ae5574b1a14067a Mon Sep 17 00:00:00 2001 From: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Tue, 11 Apr 2023 21:50:15 -0700 Subject: [PATCH] fix: always reinstall when refreshing ourselves --- AltStore/Managing Apps/AppManager.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AltStore/Managing Apps/AppManager.swift b/AltStore/Managing Apps/AppManager.swift index 5bf39ed2..fc28cfba 100644 --- a/AltStore/Managing Apps/AppManager.swift +++ b/AltStore/Managing Apps/AppManager.swift @@ -876,7 +876,9 @@ private extension AppManager if app.certificateSerialNumber != group.context.certificate?.serialNumber || uti != nil || - app.needsResign + app.needsResign || + // We need to reinstall ourselves on refresh to ensure the new provisioning profile is used + app.bundleIdentifier == StoreApp.altstoreAppID { // Resign app instead of just refreshing profiles because either: // * Refreshing using different certificate