chore: logs os_log bout-en-bout (watch sendSample + iPhone liveSample) + hook AUTOSIM
Logger unified (capturable via simctl) côté watch (envoi) et iPhone (réception) pour valider le pont WCSession. Hook AUTOSIM (env var) démarre le mode test au lancement, pour validation automatisée sur simulateur. Pont prouvé E2E sur sim pair iPhone+Watch : HR identiques watch->iPhone. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,10 +5,19 @@ struct ContentView: View {
|
||||
@EnvironmentObject private var workout: WorkoutManager
|
||||
|
||||
var body: some View {
|
||||
if workout.isRunning {
|
||||
LiveWorkoutView()
|
||||
} else {
|
||||
ActivityPickerView()
|
||||
Group {
|
||||
if workout.isRunning {
|
||||
LiveWorkoutView()
|
||||
} else {
|
||||
ActivityPickerView()
|
||||
}
|
||||
}
|
||||
.task {
|
||||
// Déclenchement auto du mode test (validation simulateur) :
|
||||
// SIMCTL_CHILD_AUTOSIM=1 xcrun simctl launch …
|
||||
if ProcessInfo.processInfo.environment["AUTOSIM"] == "1" {
|
||||
workout.startSimulation()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user