diff --git a/AltStore/Info.plist b/AltStore/Info.plist index 72110fc2..a54f4f93 100644 --- a/AltStore/Info.plist +++ b/AltStore/Info.plist @@ -4,8 +4,8 @@ ALTAppGroups - group.com.SideStore.SideStore group.$(APP_GROUP_IDENTIFIER) + group.com.SideStore.SideStore ALTDeviceID 00008101-000129D63698001E diff --git a/AltStore/Operations/InstallAppOperation.swift b/AltStore/Operations/InstallAppOperation.swift index 144b0be8..f4870609 100644 --- a/AltStore/Operations/InstallAppOperation.swift +++ b/AltStore/Operations/InstallAppOperation.swift @@ -198,22 +198,15 @@ final class InstallAppOperation: ResultOperation UIApplication.shared.perform(#selector(NSXPCConnection.suspend)) } } - var attempts = 10 - while (attempts != 0){ - print("Install ipa attempts left: \(attempts)") - do { - try install_ipa(installedApp.bundleIdentifier) - installing = false - installedApp.refreshedDate = Date() - self.finish(.success(installedApp)) - break - } catch { - attempts -= 1 - if (attempts <= 0){ - installing = false - self.finish(.failure(MinimuxerError.InstallApp)) - } - } + + do { + try install_ipa(installedApp.bundleIdentifier) + installing = false + installedApp.refreshedDate = Date() + self.finish(.success(installedApp)) + } catch let error { + installing = false + self.finish(.failure(error)) } } } diff --git a/AltStore/Operations/OperationError.swift b/AltStore/Operations/OperationError.swift index 7829502a..c3141c17 100644 --- a/AltStore/Operations/OperationError.swift +++ b/AltStore/Operations/OperationError.swift @@ -138,8 +138,8 @@ extension MinimuxerError: LocalizedError { return self.createService(name: "AFC") case .RwAfc: return NSLocalizedString("AFC was unable to manage files on the device", comment: "") - case .InstallApp: - return NSLocalizedString("Unable to install the app from the staging directory", comment: "") + case .InstallApp(let message): + return NSLocalizedString("Unable to install the app: \(message.toString())", comment: "") case .UninstallApp: return NSLocalizedString("Unable to uninstall the app", comment: "")