diff --git a/AltStore.xcodeproj/project.pbxproj b/AltStore.xcodeproj/project.pbxproj index 811efa9e9..b79cd4976 100644 --- a/AltStore.xcodeproj/project.pbxproj +++ b/AltStore.xcodeproj/project.pbxproj @@ -3242,7 +3242,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.4.2; + MARKETING_VERSION = 1.4.3; PRODUCT_BUNDLE_IDENTIFIER = com.rileytestut.AltStore; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -3270,7 +3270,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.4.2; + MARKETING_VERSION = 1.4.3; PRODUCT_BUNDLE_IDENTIFIER = com.rileytestut.AltStore; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/AltStore/Operations/AuthenticationOperation.swift b/AltStore/Operations/AuthenticationOperation.swift index d0055950f..36876e4ad 100644 --- a/AltStore/Operations/AuthenticationOperation.swift +++ b/AltStore/Operations/AuthenticationOperation.swift @@ -432,11 +432,11 @@ private extension AuthenticationOperation { func selectTeam(from teams: [ALTTeam]) { - if let team = teams.first(where: { $0.type == .individual }) + if let team = teams.first(where: { $0.type == .free }) { return completionHandler(.success(team)) } - else if let team = teams.first(where: { $0.type == .free }) + else if let team = teams.first(where: { $0.type == .individual }) { return completionHandler(.success(team)) } diff --git a/AltStore/Operations/FetchProvisioningProfilesOperation.swift b/AltStore/Operations/FetchProvisioningProfilesOperation.swift index 98e79921d..2a342dd33 100644 --- a/AltStore/Operations/FetchProvisioningProfilesOperation.swift +++ b/AltStore/Operations/FetchProvisioningProfilesOperation.swift @@ -365,16 +365,10 @@ extension FetchProvisioningProfilesOperation entitlements[key] = value } - var applicationGroups = entitlements[.appGroups] as? [String] ?? [] - if applicationGroups.isEmpty - { - guard let isAppGroupsEnabled = appID.features[.appGroups] as? Bool, isAppGroupsEnabled else { - // No app groups, and we also haven't enabled the feature, so don't continue. - // For apps with no app groups but have had the feature enabled already - // we'll continue and assign the app ID to an empty array - // in case we need to explicitly remove them. - return completionHandler(.success(appID)) - } + guard var applicationGroups = entitlements[.appGroups] as? [String], !applicationGroups.isEmpty else { + // Assigning an App ID to an empty app group array fails, + // so just do nothing if there are no app groups. + return completionHandler(.success(appID)) } if app.isAltStoreApp diff --git a/Dependencies/AltSign b/Dependencies/AltSign index 8ce86befc..74c08fc9d 160000 --- a/Dependencies/AltSign +++ b/Dependencies/AltSign @@ -1 +1 @@ -Subproject commit 8ce86befc8621c290ef916f8694a0ffc3cd99f14 +Subproject commit 74c08fc9dd3801a87c3716688d6ac0acabefea79