mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-17 18:53:40 +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:
@@ -351,7 +351,8 @@ private extension DatabaseManager
|
|||||||
|
|
||||||
func migrateDatabaseToAppGroupIfNeeded(completion: @escaping (Result<Void, Error>) -> Void)
|
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>)
|
func finish(_ result: Result<Void, Error>)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user