mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
[AltStoreCore] Fixes migration error on launch if AltStore app group does not exist.
Allows falling back to using regular app sandbox instead of app group.
This commit is contained in:
@@ -349,7 +349,8 @@ private extension DatabaseManager
|
||||
|
||||
func migrateDatabaseToAppGroupIfNeeded(completion: @escaping (Result<Void, Error>) -> Void)
|
||||
{
|
||||
guard UserDefaults.shared.requiresAppGroupMigration else { return completion(.success(())) }
|
||||
// Only migrate if we haven't migrated yet and there's a valid AltStore app group.
|
||||
guard UserDefaults.shared.requiresAppGroupMigration && Bundle.main.altstoreAppGroup != nil else { return completion(.success(())) }
|
||||
|
||||
func finish(_ result: Result<Void, Error>)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user