From 49a78fe9a13f8fc4d2c24db05d12dfc68cf559f5 Mon Sep 17 00:00:00 2001 From: Sylvain Bettinelli Date: Fri, 8 May 2026 10:18:43 +0000 Subject: [PATCH] =?UTF-8?q?fix=20:=20schedule()=20retour=20pas=20captur?= =?UTF-8?q?=C3=A9=20(le=20type=20retourn=C3=A9=20n'a=20pas=20.id/.date)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le compile error venait de let scheduled = ... .id ... .date qui suppose un ScheduledWorkoutPlan avec ces propriétés. Probablement le type retourné par schedule() dans le SDK actuel a une signature différente (ou retourne Void). Simplification : ne pas capturer le résultat, juste try await + log statique. --- ios/App/App/CoachWorkoutKit.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/App/App/CoachWorkoutKit.swift b/ios/App/App/CoachWorkoutKit.swift index 6ac84b4..443fe4a 100644 --- a/ios/App/App/CoachWorkoutKit.swift +++ b/ios/App/App/CoachWorkoutKit.swift @@ -166,7 +166,7 @@ public class CoachWorkoutKitPlugin: CAPPlugin, CAPBridgedPlugin { [.year, .month, .day, .hour, .minute, .timeZone], from: scheduleDate ) - let scheduled = try await WorkoutScheduler.shared.schedule(plan, at: comps) - NSLog("[CoachWorkoutKit] schedule OK : \(scheduled.id) at \(scheduled.date)") + try await WorkoutScheduler.shared.schedule(plan, at: comps) + NSLog("[CoachWorkoutKit] schedule OK at \(scheduleDate)") } }