From eef23ae49d9b617aae48560155d3089380635014 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Wed, 20 Apr 2022 15:19:09 -0700 Subject: [PATCH] [AltServer] Updates NSMultipleUnderlyingErrorsKey #available check to include macOS --- Shared/Extensions/NSError+AltStore.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shared/Extensions/NSError+AltStore.swift b/Shared/Extensions/NSError+AltStore.swift index ded2472a..55288d49 100644 --- a/Shared/Extensions/NSError+AltStore.swift +++ b/Shared/Extensions/NSError+AltStore.swift @@ -79,7 +79,7 @@ extension NSError userInfo[NSUnderlyingErrorKey] = sanitizedError } - if #available(iOS 14.5, *), let underlyingErrors = userInfo[NSMultipleUnderlyingErrorsKey] as? [Error] + if #available(iOS 14.5, macOS 11.3, *), let underlyingErrors = userInfo[NSMultipleUnderlyingErrorsKey] as? [Error] { let sanitizedErrors = underlyingErrors.map { ($0 as NSError).sanitizedForCoreData() } userInfo[NSMultipleUnderlyingErrorsKey] = sanitizedErrors