From 48f03864bb79c203b281f694fe1014bca1dd9eec Mon Sep 17 00:00:00 2001 From: Kevin Lundberg Date: Mon, 20 Sep 2021 22:17:26 -0400 Subject: [PATCH] Don't compile symbols for mac catalyst that are not yet available out of beta --- Sources/CustomDump/Conformances/Foundation.swift | 2 +- Sources/CustomDump/Conformances/UserNotifications.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/CustomDump/Conformances/Foundation.swift b/Sources/CustomDump/Conformances/Foundation.swift index 3f87d52..4846683 100644 --- a/Sources/CustomDump/Conformances/Foundation.swift +++ b/Sources/CustomDump/Conformances/Foundation.swift @@ -5,7 +5,7 @@ import Foundation #endif // NB: Xcode 13 does not include macOS 12 SDK -#if compiler(>=5.5) && !os(macOS) +#if compiler(>=5.5) && !os(macOS) && !targetEnvironment(macCatalyst) @available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) extension AttributedString: CustomDumpRepresentable { public var customDumpValue: Any { diff --git a/Sources/CustomDump/Conformances/UserNotifications.swift b/Sources/CustomDump/Conformances/UserNotifications.swift index f23125f..2d5face 100644 --- a/Sources/CustomDump/Conformances/UserNotifications.swift +++ b/Sources/CustomDump/Conformances/UserNotifications.swift @@ -106,7 +106,7 @@ } // NB: Xcode 13 does not include macOS 12 SDK - #if compiler(>=5.5) && !os(macOS) + #if compiler(>=5.5) && !os(macOS) && !targetEnvironment(macCatalyst) @available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) extension UNNotificationInterruptionLevel: CustomDumpStringConvertible { public var customDumpDescription: String {