From 153e706d5774108f3a0e71fc347872e04f6578f4 Mon Sep 17 00:00:00 2001 From: Paul Beusterien Date: Thu, 14 Dec 2023 09:28:07 -0800 Subject: [PATCH] Build failure for unsupported platforms --- Sources/GoogleAI/GenerativeAISwift.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/GoogleAI/GenerativeAISwift.swift b/Sources/GoogleAI/GenerativeAISwift.swift index e17756b..158875c 100644 --- a/Sources/GoogleAI/GenerativeAISwift.swift +++ b/Sources/GoogleAI/GenerativeAISwift.swift @@ -13,6 +13,10 @@ // limitations under the License. import Foundation +#if !os(macOS) && !os(iOS) + #error("Only iOS and macOS targets are currently supported.") +#endif + /// Constants associated with the GenerativeAISwift SDK public enum GenerativeAISwift { /// String value of the SDK version