Treats App ID bundle IDs as case-insensitive

Apple’s servers return an error when registering a bundle ID with different capitalization than an existing one, so we now perform case-insensitive comparisons when determining if we need to register an App ID.
This commit is contained in:
Riley Testut
2020-05-07 12:45:09 -07:00
parent 41b57b7f5e
commit 0f9df5af8a

View File

@@ -237,7 +237,7 @@ extension FetchProvisioningProfilesOperation
{
let appIDs = try Result(appIDs, error).get()
if let appID = appIDs.first(where: { $0.bundleIdentifier == bundleIdentifier })
if let appID = appIDs.first(where: { $0.bundleIdentifier.lowercased() == bundleIdentifier.lowercased() })
{
completionHandler(.success(appID))
}