<!--
{
  "availability" : [
    "watchOS: 10.0.0 -",
    "iOS: 17.0.0 -",
    "Xcode: 15.0.0 -"
  ],
  "documentType" : "article",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/building-a-multidevice-workout-app",
  "metadataVersion" : "0.1.0",
  "role" : "sampleCode",
  "title" : "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

> Note: This sample code project is associated with WWDC23 session 10023: [Build a multidevice workout app](https://developer.apple.com/wwdc23/10023/).

### 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](https://help.apple.com/xcode/mac/current/#/dev23aab79b4).
- 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)