UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Building a multidevice workout app

Forums > watchOS


I'm trying to run the multidevice workout app, presented in WWDC23.


There seems to be an error in following function of the workoutManager:

func sendData(_ data: Data) async {
        do {
            // try await session?.sendData(toRemoteWorkoutSession: data) // original line
            try await session?.sendToRemoteWorkoutSession(data: data)
        } catch {
            Logger.shared.log("Failed to send data: \(error)")

session?.sendData(..)seems to be non-existing. does anyone has a clue to solve this? sendToRemoteWorkoutSession doesn't seem to work neither.

Love this new feature!



Are you on Xcode 15?



Xcode: Version 15.0 beta 5 (15A5209g)

iOS 17.0

watchOS 10.0


Hacking with Swift is sponsored by Essential Developer

SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until April 28th.

Click to save your free spot now

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.