diff --git a/AltBackup/BackupController.swift b/AltBackup/BackupController.swift index 60d99dea..4b2379ac 100644 --- a/AltBackup/BackupController.swift +++ b/AltBackup/BackupController.swift @@ -89,7 +89,9 @@ class BackupController: NSObject { do { - guard let bundleIdentifier = Bundle.main.bundleIdentifier else { throw BackupError(.invalidBundleID, description: NSLocalizedString("Unable to create backup directory.", comment: "")) } + guard let bundleIdentifier = Bundle.main.object(forInfoDictionaryKey: Bundle.Info.altBundleID) as? String else { + throw BackupError(.invalidBundleID, description: NSLocalizedString("Unable to create backup directory.", comment: "")) + } guard let altstoreAppGroup = Bundle.main.altstoreAppGroup, @@ -186,7 +188,9 @@ class BackupController: NSObject { do { - guard let bundleIdentifier = Bundle.main.bundleIdentifier else { throw BackupError(.invalidBundleID, description: NSLocalizedString("Unable to access backup.", comment: "")) } + guard let bundleIdentifier = Bundle.main.object(forInfoDictionaryKey: Bundle.Info.altBundleID) as? String else { + throw BackupError(.invalidBundleID, description: NSLocalizedString("Unable to access backup.", comment: "")) + } guard let altstoreAppGroup = Bundle.main.altstoreAppGroup, diff --git a/AltBackup/Info.plist b/AltBackup/Info.plist index 25e69f4e..63d01c06 100644 --- a/AltBackup/Info.plist +++ b/AltBackup/Info.plist @@ -6,6 +6,8 @@ group.com.rileytestut.AltStore + ALTBundleIdentifier + com.rileytestut.AltBackup CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable