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 094dc0da26
commit fe2f9d5b2b

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))
}