From 174f4ebf7a806683efbb66a5d3eb570941e55d9f Mon Sep 17 00:00:00 2001 From: Millian Lamiaux Date: Sat, 4 Jul 2026 17:21:33 +0200 Subject: [PATCH] fix: add missing iOS widget target for Dynamic Island / Live Activities MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The TabataGoWidget code existed on disk but had no corresponding target in project.yml, so the widget extension was never compiled or embedded in deployed builds — Dynamic Island never appeared. Added: - TabataGoWidget app-extension target (iOS 26.0) with shared models - Embed dependency in TabataGo target - Widget in scheme build targets for Xcode discoverability - Fix CFBundleVersion in Info.plist (1 → 2) to match main app Config: NSSupportsLiveActivities + FrequentUpdates, correct bundle ID (fr.millianlmx.tabatago.widget), TARGETED_DEVICE_FAMILY: "1" --- tabatago-swift/TabataGoWidget/Info.plist | 2 +- tabatago-swift/project.yml | 34 ++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/tabatago-swift/TabataGoWidget/Info.plist b/tabatago-swift/TabataGoWidget/Info.plist index fb382bf..b64cae1 100644 --- a/tabatago-swift/TabataGoWidget/Info.plist +++ b/tabatago-swift/TabataGoWidget/Info.plist @@ -19,7 +19,7 @@ CFBundleShortVersionString 1.0 CFBundleVersion - 1 + 2 NSExtension NSExtensionPointIdentifier diff --git a/tabatago-swift/project.yml b/tabatago-swift/project.yml index 7f7d5db..02b96b0 100644 --- a/tabatago-swift/project.yml +++ b/tabatago-swift/project.yml @@ -76,6 +76,8 @@ targets: - target: TabataGoWatch embed: true + - target: TabataGoWidget + embed: true settings: base: PRODUCT_BUNDLE_IDENTIFIER: fr.millianlmx.tabatago @@ -156,6 +158,37 @@ targets: TARGETED_DEVICE_FAMILY: "4" WATCHOS_DEPLOYMENT_TARGET: "11.0" + TabataGoWidget: + type: app-extension + platform: iOS + deploymentTarget: "26.0" + sources: + - path: TabataGoWidget + excludes: + - "**/.DS_Store" + # Shared attribute types — needed by both main app and widget extension + - path: TabataGo/Models/WorkoutActivityAttributes.swift + group: TabataGoWidget + - path: TabataGo/Models/MusicActivityAttributes.swift + group: TabataGoWidget + info: + path: TabataGoWidget/Info.plist + properties: + CFBundleDisplayName: TabataGoWidget + CFBundleShortVersionString: "1.0" + CFBundleVersion: "2" + NSExtension: + NSExtensionPointIdentifier: com.apple.widgetkit-extension + NSSupportsLiveActivities: true + NSSupportsLiveActivitiesFrequentUpdates: true + settings: + base: + PRODUCT_BUNDLE_IDENTIFIER: fr.millianlmx.tabatago.widget + INFOPLIST_FILE: TabataGoWidget/Info.plist + IPHONEOS_DEPLOYMENT_TARGET: "26.0" + TARGETED_DEVICE_FAMILY: "1" + ENABLE_PREVIEWS: YES + TabataGoTests: type: bundle.unit-test platform: iOS @@ -185,6 +218,7 @@ schemes: build: targets: TabataGo: all + TabataGoWidget: all run: config: Debug archive: -- 2.49.1