diff --git a/AltStore/Operations/InstallAppOperation.swift b/AltStore/Operations/InstallAppOperation.swift index 9c2fb5c9..ad564910 100644 --- a/AltStore/Operations/InstallAppOperation.swift +++ b/AltStore/Operations/InstallAppOperation.swift @@ -98,22 +98,22 @@ final class InstallAppOperation: ResultOperation let resignedParentBundleID = resignedApp.bundleIdentifier let resignedBundleID = appExtension.bundleIdentifier - let originalBundleID = resignedBundleID.replacingOccurrences(of: resignedParentBundleID, with: parentBundleID) + let appExBundleID = resignedBundleID.replacingOccurrences(of: resignedParentBundleID, with: parentBundleID) print("`parentBundleID`: \(parentBundleID)") print("`resignedParentBundleID`: \(resignedParentBundleID)") - print("`resignedBundleID`: \(resignedBundleID)") - print("`originalBundleID`: \(originalBundleID)") + print("`appExBundleID`: \(appExBundleID)") + print("`resignedAppExBundleID`: \(resignedBundleID)") let installedExtension: InstalledExtension - if let appExtension = installedApp.appExtensions.first(where: { $0.bundleIdentifier == originalBundleID }) + if let appExtension = installedApp.appExtensions.first(where: { $0.bundleIdentifier == appExBundleID }) { installedExtension = appExtension } else { - installedExtension = InstalledExtension(resignedAppExtension: appExtension, originalBundleIdentifier: originalBundleID, context: backgroundContext) + installedExtension = InstalledExtension(resignedAppExtension: appExtension, originalBundleIdentifier: appExBundleID, context: backgroundContext) } installedExtension.update(resignedAppExtension: appExtension)