From aef38b9c3e200fef8e1bcd9ef14a2c7129ee1ff7 Mon Sep 17 00:00:00 2001 From: Harshdeep Singh <6162866+harsh62@users.noreply.github.com> Date: Tue, 10 Jun 2025 10:17:41 -0400 Subject: [PATCH] fix: comment the minimum OS version Macro causing compilation error in Xcode 26 --- .../AWSCognitoAuthPlugin/ASF/ASFAppInfo.swift | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/ASF/ASFAppInfo.swift b/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/ASF/ASFAppInfo.swift index cdf1f9b8d0..bf5125172a 100644 --- a/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/ASF/ASFAppInfo.swift +++ b/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/ASF/ASFAppInfo.swift @@ -14,15 +14,18 @@ struct ASFAppInfo: ASFAppInfoBehavior { } var targetSDK: String { - var targetSDK: String = "" -#if os(iOS) || os(watchOS) || os(tvOS) - targetSDK = "\(__IPHONE_OS_VERSION_MIN_REQUIRED)" -#elseif os(macOS) - targetSDK = "\(__MAC_OS_X_VERSION_MIN_REQUIRED)" -#else - targetSDK = "Unknown" -#endif - return targetSDK +//TODO: Not compiling in Xcode 26: Investigate further +// var targetSDK: String = "" +// +//#if os(iOS) || os(watchOS) || os(tvOS) +// targetSDK = "\(__IPHONE_OS_VERSION_MIN_REQUIRED)" +//#elseif os(macOS) +// targetSDK = "\(__MAC_OS_X_VERSION_MIN_REQUIRED)" +//#else +// targetSDK = "Unknown" +//#endif +// return targetSDK + return "Unknown" } var version: String {