From 80bffd7aae7fa988e2632f38f70a1674ece54c48 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Thu, 9 Jul 2026 18:57:46 +0200 Subject: [PATCH] Updated the Sample app and Widget targets in the Xcode project to make the app works for macOS. --- Attendi.xcodeproj/project.pbxproj | 10 +++++++--- .../Sources/Intents/DiscardRecordingIntent.swift | 2 ++ .../Sources/Intents/ProcessRecordingIntent.swift | 2 ++ .../Sources/Intents/ToggleRecordingIntent.swift | 2 ++ 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Attendi.xcodeproj/project.pbxproj b/Attendi.xcodeproj/project.pbxproj index 84f6c45..e2a2846 100644 --- a/Attendi.xcodeproj/project.pbxproj +++ b/Attendi.xcodeproj/project.pbxproj @@ -11,7 +11,7 @@ 02870A292FF7FF530079EA3A /* Features in Frameworks */ = {isa = PBXBuildFile; productRef = 02870A282FF7FF530079EA3A /* Features */; }; 0296F7F02FFAB1B600D2C5FC /* WidgetKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0296F7EF2FFAB1B600D2C5FC /* WidgetKit.framework */; }; 0296F7F22FFAB1B600D2C5FC /* SwiftUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0296F7F12FFAB1B600D2C5FC /* SwiftUI.framework */; }; - 0296F7FF2FFAB1B600D2C5FC /* AttendiWidgetExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 0296F7EE2FFAB1B600D2C5FC /* AttendiWidgetExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; + 0296F7FF2FFAB1B600D2C5FC /* AttendiWidgetExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 0296F7EE2FFAB1B600D2C5FC /* AttendiWidgetExtension.appex */; platformFilters = (ios, xros, ); settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 02D46AFE2FFAE77500266643 /* Features in Frameworks */ = {isa = PBXBuildFile; productRef = 02D46AFD2FFAE77500266643 /* Features */; }; /* End PBXBuildFile section */ @@ -342,6 +342,10 @@ }; 0296F7FE2FFAB1B600D2C5FC /* PBXTargetDependency */ = { isa = PBXTargetDependency; + platformFilters = ( + ios, + xros, + ); target = 0296F7ED2FFAB1B600D2C5FC /* AttendiWidgetExtension */; targetProxy = 0296F7FD2FFAB1B600D2C5FC /* PBXContainerItemProxy */; }; @@ -829,7 +833,7 @@ SDKROOT = auto; SKIP_INSTALL = YES; STRING_CATALOG_GENERATE_SYMBOLS = YES; - SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx watchos watchsimulator xros xrsimulator"; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator watchos watchsimulator xros xrsimulator"; SUPPORTS_MACCATALYST = NO; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; SWIFT_APPROACHABLE_CONCURRENCY = YES; @@ -921,7 +925,7 @@ SDKROOT = auto; SKIP_INSTALL = YES; STRING_CATALOG_GENERATE_SYMBOLS = YES; - SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx watchos watchsimulator xros xrsimulator"; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator watchos watchsimulator xros xrsimulator"; SUPPORTS_MACCATALYST = NO; SWIFT_APPROACHABLE_CONCURRENCY = YES; SWIFT_COMPILATION_MODE = wholemodule; diff --git a/Widgets/Attendi/Sources/Intents/DiscardRecordingIntent.swift b/Widgets/Attendi/Sources/Intents/DiscardRecordingIntent.swift index ab2848f..f6c3831 100644 --- a/Widgets/Attendi/Sources/Intents/DiscardRecordingIntent.swift +++ b/Widgets/Attendi/Sources/Intents/DiscardRecordingIntent.swift @@ -1,3 +1,4 @@ +#if os(iOS) import AppIntents import Commanding @@ -32,3 +33,4 @@ struct DiscardRecordingIntent: LiveActivityIntent { } } +#endif diff --git a/Widgets/Attendi/Sources/Intents/ProcessRecordingIntent.swift b/Widgets/Attendi/Sources/Intents/ProcessRecordingIntent.swift index c7a7b44..cbbeaef 100644 --- a/Widgets/Attendi/Sources/Intents/ProcessRecordingIntent.swift +++ b/Widgets/Attendi/Sources/Intents/ProcessRecordingIntent.swift @@ -1,3 +1,4 @@ +#if os(iOS) import AppIntents import Commanding @@ -32,3 +33,4 @@ struct ProcessRecordingIntent: LiveActivityIntent { } } +#endif diff --git a/Widgets/Attendi/Sources/Intents/ToggleRecordingIntent.swift b/Widgets/Attendi/Sources/Intents/ToggleRecordingIntent.swift index 6186fe3..a2bc0a8 100644 --- a/Widgets/Attendi/Sources/Intents/ToggleRecordingIntent.swift +++ b/Widgets/Attendi/Sources/Intents/ToggleRecordingIntent.swift @@ -1,3 +1,4 @@ +#if os(iOS) import AppIntents import Commanding @@ -32,3 +33,4 @@ struct ToggleRecordingIntent: LiveActivityIntent { } } +#endif