attempt to fix long standing bug in bundle ids

This commit is contained in:
June
2024-12-24 22:36:23 +09:00
parent 931a34cf7d
commit 3e941cfb0d
2 changed files with 14 additions and 0 deletions

View File

@@ -299,6 +299,19 @@ extension FetchProvisioningProfilesOperation
}
}
}
catch ALTAppleAPIError.bundleIdentifierUnavailable {
ALTAppleAPI.shared.fetchAppIDs(for: team, session: session) {res, err in
if let err = err {
return completionHandler(.failure(err))
}
guard let res = res else {return completionHandler(.failure(ALTError(.unknown)))}
for appid in res {
if appid.bundleIdentifier == bundleIdentifier {
completionHandler(.success(appid))
}
}
}
}
catch
{
completionHandler(.failure(error))