---
title: Building a multidevice workout app
framework: healthkit
role: sampleCode
role_heading: Sample Code
path: healthkit/building-a-multidevice-workout-app
---

# Building a multidevice workout app

Mirror a workout from a watchOS app to its companion iOS app, and perform bidirectional communication between them.

## Overview

Overview note: This sample code project is associated with WWDC23 session 10023: Build a multidevice workout app. Configure the sample code project This sample code project needs to run on physical devices. Before you run it with Xcode: Set the developer team for all targets to let Xcode automatically manage the provisioning profile. For more information, see Assign a project to a team. In the Info pane of the MirroringWorkoutsSample Watch App target, change the value of the WKCompanionAppBundleIdentifier key to the bundle ID of the iOS app.

## See Also

### Sessions

- [Running workout sessions](healthkit/running-workout-sessions.md)
- [Build a workout app for Apple Watch](healthkit/build-a-workout-app-for-apple-watch.md)
- [Building a workout app for iPhone and iPad](healthkit/building-a-workout-app-for-iphone-and-ipad.md)
- [HKWorkoutSession](healthkit/hkworkoutsession.md)
- [HKWorkoutConfiguration](healthkit/hkworkoutconfiguration.md)
- [HKWorkoutSessionState](healthkit/hkworkoutsessionstate.md)
- [HKLiveWorkoutBuilder](healthkit/hkliveworkoutbuilder.md)
- [HKLiveWorkoutBuilderDelegate](healthkit/hkliveworkoutbuilderdelegate.md)
- [HKLiveWorkoutDataSource](healthkit/hkliveworkoutdatasource.md)
